There’s two steps involved. First, you need to create the htaccess rules. Then, you’ll need to make it so the search form points to the desired location. Since you ask only about the first, I’ll assume you have the second covered.
Try pasting something like this into your htaccess:
RewriteRule /some-folder/(.*)/?(.*) WORDPRESS/?s=$1&paged=$2
Obviously, replace WORDPRESS with your path to wordpress. And that should all be on one line, not wrapped like it shows up here.
Thanks, Adam! Will give it a try. 🙂
adamrbrown: How would I go about the second part? I’m looking at searchform.php right now and I can’t work it out.
Cheers,
Robert
Any chance of having WordPress’ permalink for search as http://www.mysite.com/<KEYWORDS>?
Where <KEYWORDS> would be the keywords.
Ex: http://www.mysite.com/wordpress+plugins
Not really. It will be
example.com?s=wordpress+plugins
Actually I found a plugin (called “Search Permalink”) that does the trick without touching the .htaccess file.
Problem is that WP returns 404 not found thinking I’m looking for an static page…
thinking I’m looking for an static page…
That’s exactly why it will not work.
yeap, you cant do that mmoaraes, best you can hope for is going to be something like so:
http://www.village-idiot.org/search/wordpress+spam
OK, thanks. I opened another topic to discuss this:
http://wordpress.org/support/topic/141451
@whooami
@moshu
Nevermind. Got it working doing some tricks with Redirections plugin: http://urbangiraffe.com/plugins/redirection/
Thanks anyway!