Return to Snippet

Revision: 38021
at December 22, 2010 14:41 by baires


Initial Code
# Redirect Empty Searches to root
RewriteCond %{QUERY_STRING} ^s=$
RewriteRule ^ /? [L,R=301]

Initial URL
http://forrst.com/posts/301_Redirect_Empty_WordPress_Searches_to_Root-05C

Initial Description
A blank search in wordpress returns all the posts, which could be taken as duplicate content if that got indexed.

Initial Title
301 Redirect Empty WordPress Searches to Root

Initial Tags
redirect, search, wordpress

Initial Language
PHP