I have the following redirects to get rid of some dead links showing up in search crawlers.
RewriteCond %{HTTP_HOST} ^www\.mydomain\.com$ [NC]
RewriteCond %{QUERY_STRING} ^unsubscribe&group=128f987fbc$ [NC]
RewriteRule ^scotmail/scotmail\.mvc$ http://www.mydomain.com [R=301,L]
What I expected is this
http://www.mydomain.com
Unfortunately the query string is getting sent to the address bar.
What I get is this
http://www.adomain.com/?unsubscribe&group=128f987fbc
What do I need to change?
I thought I had to use [QSA] to get the query string output.
RewriteCond %{HTTP_HOST} ^www\.mydomain\.com$ [NC]
RewriteCond %{QUERY_STRING} ^unsubscribe&group=128f987fbc$ [NC]
RewriteRule ^scotmail/scotmail\.mvc$ http://www.mydomain.com [R=301,L]
What I expected is this
http://www.mydomain.com
Unfortunately the query string is getting sent to the address bar.
What I get is this
http://www.adomain.com/?unsubscribe&group=128f987fbc
What do I need to change?
I thought I had to use [QSA] to get the query string output.
Comment