<%aa=trim(request.ServerVariables("HTTP_HOST"))
if aa="www.XXXX.com" then response.Redirect("http://"&aa&"/XX/index.asp")
if aa="www.YYYYYY.com" then response.Redirect("http://"&aa&"/YYY/index.asp")
%>
if aa="www.XXXX.com" then response.Redirect("http://"&aa&"/XX/index.asp")
if aa="www.YYYYYY.com" then response.Redirect("http://"&aa&"/YYY/index.asp")
%>
根据不同的IP redirect("不同的url")就OK了啊
Request.ServerVariables("REMOTE_ADDR")