Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Complex redirect


synergy - 4:48 pm on Jun 15, 2010 (gmt 0)


I have a similar question, I want to redirect an old domain with PHP URL variables oldsite.com?var1=1&var2=2, to one domain www.newsite.com

I currently have this:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.oldiste.com$
RewriteRule ^(.*)$ www.newsite.com/ [R=301,L]

RewriteCond %{HTTP_HOST} ^oldsite.com$
RewriteRule ^(.*)$ www.newsite.com/ [R=301,L]

But it seems the URL variables are being passed with the redirect... I don't want the variable to pass. Any suggestions?


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