Created
March 7, 2013 15:49
-
-
Save chuckreynolds/5108987 to your computer and use it in GitHub Desktop.
Redirect empty searches in WordPress back to root. Empty ?s= suck and WP doesn't handle them. You should.
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
# Redirect Empty Searches to root | |
RewriteCond %{QUERY_STRING} ^s=$ | |
RewriteRule ^ /? [L,R=301] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment