设为首页
加入收藏
站内地图
旧版入口
当前位置:首页 > 站长学院 > 网络编程 > ASP

多域名解释到同一空间但不同目录的实现方法

作者:佚名 出处:网络转载 时间:11-26 点击:

内容载入中...

<%
'取得HTTP输入的值并付值到HTOST中
host=lcase(request.servervariables("HTTP_HOST"))
'开始条件跳转
SELECT CASE host
' 如果HOST的值是www.jz173.com就选择事件case"www.jz173.com"的命令
CASE "www.jz173.com"
' Below is the redirect command
response.redirect "index1.htm"
CASE "jz173.com"
' Below is the redirect command
response.redirect "index1.htm"
CASE "music.jz173.com"
' Below is the redirect command
response.redirect "music/"
CASE "bbs.jz173.com"
' Below is the redirect command
response.redirect "bbs/"
CASE "www.jz173.com"
' Below is the redirect command
response.redirect "code/"
CASE "jz173.com"
' Below is the redirect command
response.redirect "soft/"

 

'We use CASE ELSE to fix any other requests
CASE ELSE
response.redirect "inc/"
END SELECT
%>

收藏本文:
】【打印页面】【推荐给朋友】【关闭窗口

站长学院

推荐信息