Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- 301 redirect but not passing variables


AnonyMouse - 11:15 am on Sep 15, 2009 (gmt 0)


Hi,

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!


Thread source:: http://www.webmasterworld.com/apache/3989647.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com