[thelist] directory structure
Les Lytollis
les.lytollis at morse.com
Mon Dec 16 02:55:01 CST 2002
>I have two domains pointing to the same IP address, same root directory on
>my IIS server. It's not hosted locally, but I'd like to have the two
>domains have different root directories...
This is from my ISP's (oneandone.co.uk) help pages - hope it helps
http://faq.oneandone.co.uk/hosting/12.html
---------------------1&1 WebHosting FAQ---------------------
How do I manage Multiple domains in the MS Hosting Packages?
The way that you control multiple domains in the MS Hosting packages at the
moment is by using a small script. You need to create a file called
default.asp and pleace it in the root of the doamin.
default.asp
<%
EnableSessionState=False
host = Request.ServerVariables("HTTP_HOST")
if host = "domain1.de" or host = "www.domain1.de" then
response.redirect("http://domain.de/subdir1/default.htm")
elseif host = "domain2.de" or host = "www.domain2.de" then
response.redirect("http://domain.de/subdir2/default.htm")
else
' if we get no host or undefined host
response.redirect("http://domain.de/default.htm")
end if
%>
----------------
LezL
More information about the thelist
mailing list