• At the moment, the search on my site looks like this:

    http://www.mysite.com/?s=SEARCHTERM&submit=GO

    I would like it to be

    http://www.mysite.com/SEARCHTERM/

    I tried it with the following code in the htaccess file, but it always shows “No posts matched your criteria” message, even if there are plenty of posts that should come up in the search.

    RewriteEngine On
    RewriteBase /
    RewriteRule ^([a-zA-Z0-9]+)(/)?$ \?s=$1&submit=GO [L]

    Any suggestions?

The topic ‘Rewrite the search url’ is closed to new replies.