What Happens To The URL When I Do A Redirect?
It all depends on how you do the redirect. If you redirect to an absolute URL like "http://my-realdomain-com/subdir", the client browser will show the domain name specified in the URL after the redirect. The code below is an example of a redirect to an absolute URL:
Response.Redirect "http://my-realdomain.com/subdir"
If you redirect to a relative URL like "/subdir", the client browser will show the domain name specified in the URL that was used to originally request the content. The code below is an example of a redirect to an absolute URL:
Response.Redirect "/subdir"
Many Alentus customers prefer the latter method to the former as it avoids possible confusion on the part of the person browsing to the site (what they typed in as a URL is what is shown after the page opens).
If someone bookmarks a page to an alias subdir, when they return to that page, they will still see the exact URL their browser as they saw when they originally bookmarked it.
Article ID: 601, Created: March 10, 2011 at 5:46 PM, Modified: January 7, 2013 at 5:29 PM