Welcome to WebmasterWorld Guest from 23.23.46.20

Forum Moderators: ocean10000

ASP Redirect

   
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.

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.

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

WebmasterWorld Senior Member txbakers is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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

Featured Threads

Hot Threads This Week

Hot Threads This Month