ASP:一个网站空间多个域名访问 [ 网站地图 ]

发表于:2009-10-15 浏览:29 作者: 来源:站长资讯网

关键字:域名,网站空间,ASP,访问

描述:一个网站空间,但是却可以实现多个域名的访问的一段ASP代码: 以下为引用的内容:<%ifRequest.ServerVariables("SERVER_NAME")="www.abc.com"thenresponse.redirect"abc/"elseifRequest.ServerVariabl

一个网站空间,但是却可以实现多个域名的访问的一段ASP代码:

以下为引用的内容:
<%
if Request.ServerVariables("SERVER_NAME")="www.abc.com" then
response.redirect "abc/"
else if Request.ServerVariables("SERVER_NAME")="www.123.com" then
response.redirect "123/"
else if Request.ServerVariables("SERVER_NAME")="www.456.com" then
response.redirect "456/"
end if
end if
end if
%> 

 


站长资讯网 做中国最丰富的资讯网站 沪ICP备05004089号