Forum Moderators: phranque
[mydomain.com...]
and I want to redirect this to:
[mydomain.com...]
I'm not even sure how it grabbed this URL so I'm hoping to rewrite *any* numerical variable (i.e.?cat=[0-9])
The actual "home page" file is index.php if that is a factor.
Thanks in advance for any suggestions!
Options +FollowSymLinks -MultiViews
RewriteEngine on
#
# Remove any query string from "/"
RewriteCond %{QUERY_STRING} .
RewriteRule ^$ http://www.example.com? [R=301,L]
-or-
# Remove any query string from "/" or "index.php"
RewriteCond %{QUERY_STRING} .
RewriteRule ^(index\.php)?$ http://www.example.com? [R=301,L]
Jim