asp识别域名跳转代码
[ 2022-04-24 23:27:44 | 作者: 杨晓超 ]
Dim cURL
cURL=Request.ServerVariables("SERVER_NAME")
if cURL<>"www.yangxiaochao.com" then
Response.Redirect("http://www.yangxiaochao.com/")
Response.End
end If
cURL=Request.ServerVariables("SERVER_NAME")
if cURL<>"www.yangxiaochao.com" then
Response.Redirect("http://www.yangxiaochao.com/")
Response.End
end If
1