I have one site on Apache that is being moved to a new domain on an IIS server. Yeah, I know, but it's not my choice.
I want to be able to pull the referrer in php so that I can display a message to users that got redirected from the old site to the new site.
I have this htaccess rule that redirects as expected.
RewriteRule (.*) http://www.newsite.org/$1 [R=301,L]
But when I try to pull the referrer on the new site I get nothing.
Does the referring url get passed with a 301? Is there something I need to fo to make this work?
I want to be able to pull the referrer in php so that I can display a message to users that got redirected from the old site to the new site.
I have this htaccess rule that redirects as expected.
RewriteRule (.*) http://www.newsite.org/$1 [R=301,L]
But when I try to pull the referrer on the new site I get nothing.
Does the referring url get passed with a 301? Is there something I need to fo to make this work?