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:
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?
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?