Created
May 18, 2012 03:16
-
-
Save stinoga/2722936 to your computer and use it in GitHub Desktop.
Wordpress SEO friendly search rewrite rule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# search redirect | |
# this will take anything in the query string, minus any extraneous values, and turn them into a clean working url | |
RewriteCond %{QUERY_STRING} \\?s=([^&]+) [NC] | |
RewriteRule ^$ /search/%1/? [NC,R,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment