Quote:
Originally Posted by drocd
Code:
RewriteEngine on
RewriteCond %{QUERY_STRING} ^cat=.*$
RewriteRule .* http://www.domain.com [R=301,L]
|
So close!! The redirected URL is appended with the query string.
http://www.domain.com/?cat=x
I want to kill the trailing slash and query string for the canonical URL.