homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

ASP Redirect

 4:27 am on Feb 16, 2004 (gmt 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.


Zaphod Beeblebrox

 11:24 am on Feb 16, 2004 (gmt 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)

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

Global Options:
 top home search open messages active posts  

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved