asp判断访问的域名

就是说 从ashin。douu。com指向的到一个界面www.leig.com 指向到另一个界面做个判断!
2026-12-04 19:52:53
推荐回答(3个)
回答1:

asp代码跳转
response.write "script language=javascript"
response.write "top.location='123/';"
response.write "/script"
response.end
-----------------------------------------------------------------------------
《=====html中跳转到其他页面=====》
在head和/head之间加入
meta http-equiv="Refresh" content="0;url=123/"即可。其中,content后面的值是刷新时间。0为立即刷新。3为三秒后刷新。url后面的值为你想跳转到的页面的链接。
或
body onLoad="parent.location='.......'"
=====ASP中直接跳转到其他页面===========
在9.asp开头加入下面的代码
%
response.redirect "123/" //这个值就是你要跳转的页面或目录
%

回答2:

domain=request.servervariables("HTTP_HOST")
if domain="ashin.douu.com" then response.redirect("a.asp")
if domain="www.leig.com" then response.redirect("b.asp")

回答3:

影响收录,域名跳转
到最后,百度把你扔进沙盒,永远都搜索不到你!
唯一可以做的 用转发