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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirecting to another server (and preserving http-header)

Status
Not open for further replies.

blah2468

Technical User
Mar 14, 2007
11
CA
Hi there,
I have a main website application:
urlMain =
I am supposed to redirect a bunch of other URLs to urlMain. Here's the problem:

in urlMain I need to detect which url the user used to get to urlMain. So I thought it would be as simple as the following:
Code:
1. create a temp site for each url
2. configure IIS for each url to point to their corresponding temp site
3. in temp site I simply do this:
  Response.Redirect(urlMain)

However, by the time the user gets to urlMain, Request.UrlReferrer.AbsoluteUri is empty!! So do you mind pointing out what I'm doing wrong or suggest an alternative please?

One more piece of info that might be helpful:
is sitting on SSL so ->
is the final destination. I wonder if this could be the cause of http-header info loss?
 
Referrers are normally only created when a user physically clicks a link and even then their browser could be set to remove it. Therefore when you issue your redirect the details will be blank.

However, I think you can add your own details when creating a request although I can't remember how. Hopefully google can help find some ideas on how to do this.


____________________________________________________________
Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]

Need help finding an answer? Try the Search Facility or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top