ASP:一个网站空间多个域名访问

http://www.itjxue.com  2015-07-17 01:47  来源:未知  点击次数: 

一个网站空间,但是却可以实现多个域名的访问的一段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
%>

(责任编辑:IT教学网)

更多

推荐ASP教程文章