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