IT猫扑网文章教程

分类分类

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

2015-06-28 00:00作者:网管联盟

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

以下为引用的内容:
<%
if Request.ServerVariables(&SERVER_NAME&)=&www.itmop.com& then
response.redirect &itmop/&
else if Request.ServerVariables(&SERVER_NAME&)=&www.027safe.com& then
response.redirect &027safe/&
else if Request.ServerVariables(&SERVER_NAME&)=&www.hao251.com& then
response.redirect &hao251/&
end if
end if
end if
%>

展开全部

相关文章

说两句网友评论
    我要跟贴
    取消