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

多域名同一空间

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

内容载入中...
多域名同一空间
<%
'取得HTTP输入的值并付值到HTOST中
host=lcase(request.servervariables("HTTP_HOST"))
‘开始条件跳转
SELECT CASE host
' 如果HOST的值是www.8toos.com就选择事件case"www.8toos.com"的命令
CASE "www.8toos.com"
' Below is the redirect command
response.redirect "bbs/"
CASE "www.gdvet.com"
response.redirect "inc/"
'We use CASE ELSE to fix any other requests
CASE ELSE
response.redirect "inc/"
END SELECT
%>
收藏本文:
】【打印页面】【推荐给朋友】【关闭窗口
<< 上一篇 :常用ASP代码

站长学院

推荐信息