Welcome to WebmasterWorld Guest from 54.147.44.13

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)

Preferred Member

10+ Year Member

joined:Apr 27, 2004
posts:368
votes: 0


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)

Preferred Member

10+ Year Member

joined:Apr 27, 2004
posts:368
votes: 0


I'll assume this is not possible then.
1:19 am on Jan 14, 2006 (gmt 0)

Administrator

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

joined:July 31, 2003
posts:12533
votes: 0


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:
[webmasterworld.com...]