Forum Moderators: phranque
however, solution in that thread doesn't seem to work in my case.
I got following URL
www.example.com/pagename.html?varvar
and I want it to be redirected to the new location, e.g.
www.example.com/newlocation/
Every time I try to use
RewriteCond %{THE_REQUEST} ^([A-Z]{3,9})\ /pagename\.html\?varvar\ HTTP/
RewriteRule ^pagename\.html$ /newlocation/ [R=301,L]
It always carries on the query string, in this case:
www.example.com/newlocation/?varvar
any ideas how to make it:
www.example.com/newlocation/
?
Thanks.
Luke