深圳升蓝软件
数据库开发 .Net技术  |  ASP技术 PHP技术 JSP技术 应用技术类   
Hiblue Software

多域名一网站时如果返回最原来的域名


March 25,2004
<%
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
%>
       
Copyright © 2001-2008 Shenzhen Hiblue Software Team All rights reserved