多域名一网站时如果返回最原来的域名
发布时间:2016-12-29 来源:查字典编辑
摘要:我最近的应用复制代码代码如下:
<%
host=lcase(request.servervariables("HTTP_HOST"))
SELECTCASEhost
JustchangetheCASEtoyourdomains
CASE"www.designbliss.com.au"
Belowistheredirectcommand
response.redirect"au/"
CASE"designbliss.com.au"
response.redirect"au/"
CASE"e.free-bliss.com"
response.redirect"front.asp"
CASE"www.website-design-australia.com"
response.redirect"wda/"
CASE"website-design-australia.com"
response.redirect"wda/"
WeuseCASEELSEtofixanyotherrequests
CASEELSE
response.redirect"front.asp"
ENDSELECT
%>
我最近的应用
复制代码 代码如下:
<%
host=lcase(request.servervariables("HTTP_HOST"))
SELECTCASEhost
CASE"www.huaihaiw.com"
response.redirect"index2.asp"
CASE"xx.huaihai.tv"
response.redirect"index1.asp"
CASEELSE
response.redirect"index2.asp"
ENDSELECT
%>