根据域名不同转向的asp代码

和之前的php代码一样,可以实现一个虚拟主机上多个网站的功能。

<%
if Request.ServerVariables("HTTP_HOST") = "boluo.org" or Request.ServerVariables("HTTP_HOST") =?fengli.su then response.redirect "index.asp"
if Request.ServerVariables("HTTP_HOST") = www.baidu.com or Request.ServerVariables("HTTP_HOST") = www.google.com then response.redirect "index.html"
%>