<%
if Request.ServerVariables("SERVER_NAME")="www.xuanzang.net" then
response.redirect"http://www.xuanzang.net/articles.asp"
end if
if Request.ServerVariables("SERVER_NAME")="xuanzang.net" then
response.redirect"http://www.xuanzang.net/photos.asp"
end if
%>
if Request.ServerVariables("SERVER_NAME")="www.xuanzang.net" then
response.redirect"http://www.xuanzang.net/articles.asp"
end if
if Request.ServerVariables("SERVER_NAME")="xuanzang.net" then
response.redirect"http://www.xuanzang.net/photos.asp"
end if
%>
用域名管理后台的url重定向也可以,
这二种方法都实现不了多站点的效果。
如果你想二个目录实现二个不同的网站的话,那要看你的主机支持不支持,国内的虚拟主机支持的不多,有也是很贵,
国外的很多,开一个ftp都可以实现多站点。