asp realizes different domain names in different directories of the same website
Author:Eve Cole
Update Time:2009-06-23 17:01:26
<%
select case request.servervariables("http_host")
case "knowsky.com"
Server.Execute("index.html")
case "code.knowsky.com"
Server.Execute("ut/index.html")
case "font.knowsky.com"
Server.Execute("utxiazai/index.html")
case "moban.knowsky.com"
Server.Execute("ut30/index.html")
case "pages.knowsky.com"
Server.Execute("ut30xiazai/index.html")
case "sucai.knowsky.com"
Server.Execute("ut20/index.html")
case "soft.knowsky.com"
Server.Execute("xinlangutxiazai/index.html")
case else
Server.Transfer("index.html")
end select
%>
说明,把你的域名全绑定到空间IP