asp实现同网站不同目录帮定不同域名
2007-10-22 11:12:27 来源:WEB开发网核心提示:<%select case request.servervariables("http_host")case "cncms.com"Server.Execute("index.html")case "code.cncms.com"Se
<%
select case request.servervariables("http_host")
case "cncms.com"
Server.Execute("index.html")
case "code.cncms.com"
Server.Execute("ut/index.html")
case "font.cncms.com"
Server.Execute("utxiazai/index.html")
case "moban.cncms.com"
Server.Execute("ut30/index.html")
case "pages.cncms.com"
Server.Execute("ut30xiazai/index.html")
case "sucai.cncms.com"
Server.Execute("ut20/index.html")
case "soft.cncms.com"
Server.Execute("xinlangutxiazai/index.html")
case else
Server.Transfer("index.html")
end select
%>
说明,把你的域名全绑定到空间ip
select case request.servervariables("http_host")
case "cncms.com"
Server.Execute("index.html")
case "code.cncms.com"
Server.Execute("ut/index.html")
case "font.cncms.com"
Server.Execute("utxiazai/index.html")
case "moban.cncms.com"
Server.Execute("ut30/index.html")
case "pages.cncms.com"
Server.Execute("ut30xiazai/index.html")
case "sucai.cncms.com"
Server.Execute("ut20/index.html")
case "soft.cncms.com"
Server.Execute("xinlangutxiazai/index.html")
case else
Server.Transfer("index.html")
end select
%>
说明,把你的域名全绑定到空间ip
更多精彩
赞助商链接