Forum Moderators: phranque
As per a previous post from 2007 (http://www.webmasterworld.com/apache/3245421.htm), I'm trying to redirect all variations of previously dynamic page to one static page - without passing any variables. I.e. a many-to-one mapping.
If I do the following:
RewriteCond %{REQUEST_URI} ^/page.action
RewriteRule ^ http://www.example.com/newpage.html [R=301,L]
Then e.g. page.action?var=123 gets redirected to http://www.example.com/newpage.html?var=123
Is it possible to prevent those variables from being passed in the redirection?
Thanks in advance for any replies!
RewriteRule [b]^page\.action$[/b] http://www.example.com/newpage.ht[b]ml? [R[/b]=301,L]