Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirected from?

Status
Not open for further replies.

misterDee

Programmer
Feb 12, 2002
5
US
Is there a way to tell if someone was redirected to a page and, if so, identify the domain name or URL from where they came?
Our company is merging with another and the other company's domain name (i.e. abc.com) will be redirected to our domain name (i.e. xyz.com). We'd like to be able to intercept those people being redirected and then redirect them to an area within our site.
We use ASP and I've seen mentions of response.servervariables("HTTP_REFERRER"), but I've also seen that it is unreliable.
This might be an easy question, but I'm very new to ASP and would appreciate any help.
 
Hi

HTTP_REFERRER is sound, but only if the user comes to the page from a link from somewhere else. You will get nothing back if the person has typed in the url or used a bookmark. You will catch most people, which is sometimes the best we can expect in ASP.

Another, much more robust method is to talk to your web service provider and get them to point the other company's url to that page that you wish them to see. This will work at a much higher level and be more successful (and easier for you).

BUT: if they are looking for and get redirected they will go to which may not exist and will error. To get around this set up your own custom error page for the server error 404 page not found and get your service provider to set that page up as the default. Derren
[The only person in the world to like Word]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top