Rewrite works in FF but not in IE

Using a single web hosting account to host multiple sites

Rewrite works in FF but not in IE

Postby dataone » Wed Sep 19, 2007 5:02 pm

Greetings

The following rewrite works in FF but doesn't in IE (just tested with IE 7.00)

Code: Select all
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} support.domain1.com
RewriteCond %{HTTP_REFERER} ^http://domain2.com [OR]
RewriteCond %{HTTP_REFERER} ^http://www.domain2.com [OR]
RewriteCond %{HTTP_REFERER} ^http://support.domain2.com
RewriteRule (.*) http://support.domain2.com/$1 [R,L]


It works perfect in FF but in IE the url address doesn't change

Any ideas?
dataone
 
Posts: 2
Joined: Wed Sep 19, 2007 4:04 pm

Postby richardk » Thu Sep 20, 2007 1:15 pm

The Referer header is probably empty. You cannot rely on the HTTP_REFERER variable.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 108 guests

cron