Forum Moderators: coopster
This is the index.php on site B which does the redirection to Site C.
As of now... NO referrer is getting passed. That is the problem.
There must be a way round it, perhaps you could pass the B URL as a GET Var?
header('Location: page-c.php'); When clicking the link on page-a.php I am taken to page-c.php and the referrer is shown as page-a.php
If you get a blank referrer then maybe:
a) Your code for displying the referrer is incorrect
b) Your browser or security software is not supplying the referrer
c) There's some different between my server and yours so that they exhibit different behaviour
You could pass a referrer variable in the URL, as previously suggested:
header('Location: page-c.php?referrer=page-b.php');
I didn't know that the referrer would be passed until recently, when I saw it show up in an affiliate report where a header(Location: ) was used to redirect visitors.
It definitely works. Check your browser/server settings. :)
[edited by: barns101 at 1:38 am (utc) on Aug. 30, 2006]