Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

passing a referrer with a redirect

seems to just pass a blank referrer



11:24 pm on Jan 11, 2006 (gmt 0)

10+ Year Member

Hi Guys,
I need to pass a referrer url with a redirect.
I've tried php and JavaScript but each time I just pass a blank referrer.

Is there anyway to do this?

I need the referrer to show up in a normal php or javascript referrer detection scrip, the kind you find with most free hosted web stats programs.


1:05 am on Jan 14, 2006 (gmt 0)

10+ Year Member

I'll assume this is not possible then.


1:19 am on Jan 14, 2006 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Hi GerBot.

The referer is not always going to be there. The user can supply it or not, depending on how they have their setup configured. However, you can try to capture it by grabbing the HTTP_REFERER variable if it has been populated on your server.

In your case though, it sounds like you are wanting to pass it via your own redirect options and use it at that point. So, the page that is doing the redirecting simply needs to grab it's own information and pass it along.

How are you setting up your redirect right now?

Another recent discussion for some ideas:


Featured Threads

Hot Threads This Week

Hot Threads This Month