分类广告


推荐文章

  • 没有找到任何内容!
您当前的位置:中国站长下载网络编程ASP专区 → 文章内容

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

  • 作者:佚名    来源:不详    发布时间:2005-12-31 12:00:59
  • 字体大小:
<%
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
%>