用不同的域名访问同一个空间上面不同的网站

来源:互联网 发布:linux基础知识什么书 编辑:程序博客网 时间:2024/05/21 20:15
 <%

'取得HTTP输入的值并付值到HTOST中

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

'开始条件跳转

SELECT CASE host

' 如果HOST的值www.abc0.com就选择事件case"www.abc0.com"的命令

CASE "www.abc0.com"

' Below is the redirect command

response.redirect "index_abc0.asp"

CASE "www.abc1.com"

' Below is the redirect command

response.redirect "index_abc1.asp"

CASE "www.abc2.com"

' Below is the redirect command

response.redirect "index_abc2.asp"

' 继续添加...

CASE "www.abcn.com"

' Below is the redirect command

response.redirect "index_abcn.asp"

'We use CASE ELSE to fix any other requests

CASE ELSE

response.redirect "default.asp"

END SELECT

%>

原创粉丝点击