[ 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
%>

技术文章 | 评论(0) | 引用(0) | 阅读(2080)
 
发表评论
   
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]