快捷搜索:   nginx

虚拟主机多域名共用秘籍

(asp空间下起作用,asp和php都支持更好)

<%
host=lcase(request.servervariables("HTTP_HOST"))

SELECT CASE host

CASE "www.songhai.net.cn"

response.redirect "songhai/eng/main/index.html"

CASE "www.yglab.cn"

response.redirect "inde5x.html"

CASE ELSE
response.redirect "default.asp"
END SELECT
%>


顶(0)
踩(0)

您可能还会对下面的文章感兴趣:

最新评论