Code:
<?php
$URL = $_SERVER['QUERY_STRING'];
header("Location: $URL");
?>
That PHP code will redirect you to whatever URL you put after the ? ['QUERY_STRING'] in yer URL string..
So when you directly visit "http://my-site.com/?http://stardrifter.org/cgi-bin/ref.cgi" by pasting it in yer browsers URL & hitting GO
it will redirect to "http://stardrifter.org/cgi-bin/ref.cgi"
which is a site that tells you yer referrer..
But when you directly visit "http://my-site.com/?http://stardrifter.org/cgi-bin/ref.cgi"
NO REFERRER IS DISPLAYED at "http://stardrifter.org/cgi-bin/ref.cgi"..!!!
The Function "header("Location: $URL");" strips out the referrer..
How can I make the referrer either display as "http://my-site.com/?http://stardrifter.org/cgi-bin/ref.cgi" or the root of the site that it gets redirected to "http://stardrifter.org"..??