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

王朝other·作者佚名  2006-12-16
窄屏简体版  字體: |||超大  

<%

'取得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

%>

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航