ASP實現同網站不同目錄幫定不同域名
代碼如下:
<%
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
%>