I'm trying to use a php page that redirects users if they come from a certain domain The problem is that when I redirect, the visitor's http_referrer is NOT my redirecting page, but the page before! What I mean is this: User on site A clicks on a link to site B Site B redirects to site C using header("Location: ...") You would now expect that site C would see the visitor's referrer as site B, but that is not the case, in fact site C sees the visitor coming from site A I hope I explained myself properly, now onto the question: do you know of any way for passing site B's referrer to site C? The header("Location:"), as I said, just passed site A's referrer, I also tried using a meta refresh tag, but it actually passes NO referrer (tested on firefox only) Any ideas?
You definitely can't do it if you use the "Location" header. Try setting a meta refresh value to something other than 0.
How about something like having a link, then on body load click that link automatically? The only problem with doing things like this is that once someone has JavaScript disabled, for example, you're going to have a non-working page...
yep... anyway is that even possible? would you search for the link in the href array and then url('blablabl') based on that link?
Well, there's no need for an href array, as there's really only one link on the page, isn't there? In your HTML, give your href an ID, then call document.getElementById( the_id ).click() on body load. I believe that that's basically doable