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实现文件md5
下一篇:ASP处理多关键词查询实例代码