现在的位置: 首页 > 综合 > 正文

一个简单的域名自动转向源代码

2013年12月08日 ⁄ 综合 ⁄ 共 169字 ⁄ 字号 评论关闭
<%
if Request.ServerVariables("SERVER_NAME")="www.tajh.net" then
response.redirect "index1.htm"
else
response.redirect "index2.htm"
end if
%>
此ASP代码功能是当两个域名指向同一个主机时,可以自动重定向到相应的域名网站 

抱歉!评论已关闭.