[ 2005/01/28 00:11 | by 网络毛毛虫 ]
|
<%
'取得HTTP输入的值并付值到HTOST中
host=lcase(request.servervariables("HTTP_HOST"))
'开始条件跳转
SELECT CASE host
' 如果HOST的值是www.21diy.com就选择事件case"www.21diy.com"的命令
CASE "www.21diy.com"
' Below is the redirect command
response.redirect "index1.htm"
CASE "21diy.com"
' Below is the redirect command
response.redirect "/blog"
'We use CASE ELSE to fix any other requests
CASE ELSE
'其他方式访问的目录
response.redirect "/index1.htm"
END SELECT
%>