多域名一网站时如果返回最原来的域名
程序员文章站
2022-06-19 23:52:12
<% host=lcase(request.servervariables("http_host")) select case&nb...
<%
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
%>
上一篇: 意式酪乳是什么?您有一份科普待查收
下一篇: 健脾的食物多吃一些从此脾虚不再困扰你