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

ASP special functions and redirect? while openning site's main page 2

Status
Not open for further replies.

matute

Programmer
Apr 28, 2002
4
AR
Hi there
There is any way to request values typed in the location bar? like ?
I have a site with two domains pointing the same place, just want to redirect to other pages depending on what domain was typed into the location bar.

Thanks
Matute
 
You should be able to get both the URL and the Script_name from the user.

Request.Servervariables("URL") will give you the URL that they typed in, then you should be able to execute some string commands to see what domain they hit, and do the redirect off of that. The money's gone, the brain is shot.....but the liquor we still got.
 
If you mean that you have two domains pointed to the same IP address and that server is Running IIS then you can use host headers and have the server dump them off in the correct directory/start page according to how the site is setup on the server. You can access the host header edit screen by going to the site's properties. On the Web Site Tab, click the Advanced button. You'll need to give it the IP address and port number (80 for HTTP) then your web site. More than likely you'll want to put in the site name with and with out the (one for and one for ifroi.com)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top