Forum Moderators: open

Message Too Old, No Replies

ASP Redirect

         

alexshields

4:27 am on Feb 16, 2004 (gmt 0)

10+ Year Member



Good Folks,

Is it possible to have two domain names under the same ip address and have the domain names both show up at the top http bar when you type them in? In other words both will take to you to the same IP address although you would not see the other. If it is possible (perhaps through asp rediret) please let me know how to.

Thanks very much in advance,

Alex S.

Zaphod Beeblebrox

11:24 am on Feb 16, 2004 (gmt 0)

10+ Year Member



If you use Request.ServerVariables("server_name") you can see what site they're trying to view. This variable will hold the name of the domain they typed in the address bar, or clicked on somewhere on the net (e.g. www.myfirstdomain.com, www.myseconddomain.com).

Using Response.Redirect you can send them to the appropriate page on our server. I host 6 sites on 1 IP address this way.

txbakers

1:42 pm on Feb 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can use host headers as well with one IP address.