.htaccess redirect not preserving http_referer header
        Posted  
        
            by 
                CodeToaster
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by CodeToaster
        
        
        
        Published on 2010-10-04T14:42:18Z
        Indexed on 
            2012/03/31
            23:34 UTC
        
        
        Read the original article
        Hit count: 269
        
We're merging with another company, and we want to redirect content from their (Apache) website to our (IIS) site. When traffic arrives at our site, we inspect the HTTP_REFERER, and if the visitor was just redirected from the company's site that we just merged with, they'll be presented with a "splash" page announcing the merger.
I've added the line...
Redirect / http://www.oursite.com/
...to their .htaccess, which works fine, except that when the browser is redirected it doesn't send the HTTP_REFERER header.
I've tried redirecting with redirect codes 301, 302 and 307 (the default, I believe, is 302) and all have the same effect (redirects fine, but no HTTP_REFERER).
Can anyone provide some insight into why HTTP_REFERER wouldn't be included?
© Server Fault or respective owner