Forum Moderators: coopster
<?php
header("Referer: [set-adress.com");...]
header("Location: [new-location.com");...]
?>
But for some reason it doesn't. Or, the redirect works fine but the Referer is empty.
There is an old thread (non-writable) on this topic, suggesting CURL as a solution. However, my server doesn't have support for it. Surely it can't be that hard to solve anyway?
Thanks for any input.
To put it another way, sending the browser the REFERER header will have no effect because it is not a header that is ever sent by the server, it's the other way around.
If there is a way to convince a remote web browser to send a different referrer on it's subsequent HTTP request I would be very curious to hear about it!
Anyway, maybe another solution is possible. To "standardize" header on my site I could redirect traffic via a redirect page. However with both header-change in php and meta refresh in HTML the header doesn't seem to be updated while redirecting.
Any solution to this? From my log it looks like I succeeded once (it logged the redirect script as referer), but unfortunately I have no idea how I did it...
The only ways around this (that I know of) would be for the redirect script to do a meta (or javascript) redirect or for it to load the target url in a full page frame (the containing frame being invisible).
Using option two the redirect page would also appear in the Address bar.