吴伟贤のBlog

Feed Rss

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

04.07.2008, div+css & html, by .

<%
if Request.ServerVariables("SERVER_NAME")="www.tajh.net" then
response.redirect "index1.htm"
else
response.redirect "index2.htm"
end if
%>
此ASP代码功能是当两个域名指向同一个主机时,可以自动重定向到相应的域名网站

评论已关闭。