多域名一网站时如果返回最原来的域名
(编辑:jimmy 日期: 2024/12/26 浏览:3 次 )
<%
host=lcase(request.servervariables("HTTP_HOST"))
SELECT CASE host
Just change the CASE to your domains
CASE "www.designbliss.com.au"
Below is the redirect command
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/"
We use CASE ELSE to fix any other requests
CASE ELSE
response.redirect "front.asp"
END SELECT
%>
我最近的应用
复制代码 代码如下:
<%
host=lcase(request.servervariables("HTTP_HOST"))
SELECT CASE host
CASE "www.huaihaiw.com"
response.redirect "index2.asp"
CASE "xx.huaihai.tv"
response.redirect "index1.asp"
CASE ELSE
response.redirect "index2.asp"
END SELECT
%>
host=lcase(request.servervariables("HTTP_HOST"))
SELECT CASE host
Just change the CASE to your domains
CASE "www.designbliss.com.au"
Below is the redirect command
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/"
We use CASE ELSE to fix any other requests
CASE ELSE
response.redirect "front.asp"
END SELECT
%>
我最近的应用
复制代码 代码如下:
<%
host=lcase(request.servervariables("HTTP_HOST"))
SELECT CASE host
CASE "www.huaihaiw.com"
response.redirect "index2.asp"
CASE "xx.huaihai.tv"
response.redirect "index1.asp"
CASE ELSE
response.redirect "index2.asp"
END SELECT
%>
下一篇:如何在ASP页面动态Inclue文件?