Welcome to WebmasterWorld Guest from 107.20.54.98

Forum Moderators: ocean10000

Message Too Old, No Replies

ASP Redirect

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

New User

10+ Year Member

joined:Jan 1, 2004
posts:16
votes: 0


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)

Junior Member

10+ Year Member

joined:Aug 31, 2003
posts:196
votes: 0


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)

Senior Member

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

joined:Sept 1, 2001
posts:4392
votes: 0


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