View Full Version : 2 domains. 1 directory

10-10-2003, 01:39 AM
I have 2 domain names pointing to the same directory on my server (I want both pages to be updated at the same time but with different databases...its a long story). Is it possible for an ASP page to look to see which url was typed into the browser and direct it to its proper folder?

if www.page1.com is the url it needs to go to page1.html

if www.page2.com is the url it needs to go to page2.html

Thanks. :)

10-10-2003, 07:34 AM
I think you can get the url with this servervariable:


and then you can redirect, depending on the url. This code then need to be inside your index.asp.

10-10-2003, 11:48 AM
Thanks. I got it.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum