多域名一网站时如果返回最原来的域名
程序员文章站
2023-11-07 12:06:28
<% 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
%>
上一篇: LINUX下查找大文件及大的文件夹
下一篇: 富含维生素的食物有哪些吃了对身体好