Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

how to make permalink available for search result page

/?s=one+two+ok to /search/one-two-ok/

thank

share|improve this question

2 Answers 2

up vote 3 down vote accepted

That kind of search request should already work(query it directly in your address bar), the component you're missing is redirecting the non-pretty search requests..

For doing the redirect, you should find the following plugin still works.. http://txfx.net/wordpress-plugins/nice-search/

Hope that helps..

share|improve this answer
    
cool, thank you t31os –  zagriyen Nov 20 '10 at 1:49
    
You're welcome.. ;) –  t31os Nov 20 '10 at 10:53
    
+1 for Nice Search plugin. Bookmarked! –  PNMG Dec 2 '10 at 21:54

i found this

RewriteRule ^search/(.+)?$ /index.php?s=$1 [QSA,L]

and in form

<form action=";/index.php" method="get" onsubmit="location.href='/search/' + encodeURIComponent(this.s.value).replace(/%20/g, '+'); return false;">

source : seo-wordpress-search-with-permalink-structure/

if you have a better solution i want it

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.