hi, this is my first experience with ASP so forgive me for stupid questions. here's my problem. XP IIS 5.X does not support multiple domains and i need to be able to host a 2nd domain for a while. so, on the domain side of things, i've created A records on both domains that point to the same IP address. Then I found out that you can use an ASP page that uses server variables to determine with domain the client request is coming from and by that you can then redirect to the appropriate web page. here's the code i used...i'm concerned with the paintergoode redirecting to "/paintergoode/index.htm"
is there anything else i should be worried about?
<%
domainname = request.servervariables("HTTP_HOST")
SELECT CASE domainname
CASE " response.redirect "/paintergoode/index.htm"
CASE "paintergoode.com" response.redirect "/paintergoode/index.htm"
CASE "towntopic.net" response.redirect "home.htm"
CASE " response.redirect "home.htm"
CASE ELSE response.redirect "home.htm"
END SELECT
%>
also, is this the best way to accomplish what I am needing to do?
thanks for any insight you might be able to provide.
is there anything else i should be worried about?
<%
domainname = request.servervariables("HTTP_HOST")
SELECT CASE domainname
CASE " response.redirect "/paintergoode/index.htm"
CASE "paintergoode.com" response.redirect "/paintergoode/index.htm"
CASE "towntopic.net" response.redirect "home.htm"
CASE " response.redirect "home.htm"
CASE ELSE response.redirect "home.htm"
END SELECT
%>
also, is this the best way to accomplish what I am needing to do?
thanks for any insight you might be able to provide.