Asp Redirect

Dec 14 at 7:41am - admin
 

This is a very simple method to redirect a single IIS entry to multiple FQDN's. You can add as many as you wish just repeat Elseif code. Place this as the default document and you are set.

<%
Dim srvrname
srvrname= lcase(Request.servervariables("SERVER_NAME"))
if srvrname="www.domainname.com" or srvrname="domainname.com" then
 Response.Redirect "default.htm"%>
<%Elseif srvrname="www.domain2.com" or srvrname="domain2.com" then
  Response.Redirect "/domain2/default.asp"%>
<%end if%>