游戏娱乐 新鲜速递 单机游戏 网络游戏 游戏秘技 手机游戏 游戏攻略 木马防范 流氓清除 设计专区 压缩解压 下载工具 P2P工具专区 输入法专区

您当前的位置:JZ5U绿色下载站 -> 编程开发 -> ASP 源码

站内搜索

多个绑定多域名的ASP代码

  • 软件大小:0.0 MB
  • 软件类型:手机软件 - 编程开发 - ASP 源码
  • 软件语言:简体中文
  • 授权方式:免费软件
  • 软件星级:
  • 更新时间:2005-09-01 20:29:19
  • 运行环境:Win9X/WinXP/Win2000/

软件简介

如果有有一个ASP空间,而你又想放置多个多个站点,这些代码可以帮到你
第一个
<%if Request.ServerVariables("SERVER_NAME")="www.jz5u.com" then
response.redirect "zkj"
else
response.redirect "i.htm"
end if%>

第二个
<%
select case request.servervariables("http_host")
case "www.jz5u.com" '1
Server.Transfer("v3.htm")
case "www.aspcn.net" '2
Server.Transfer("i.htm")
case "www.yyjs.cn" '3
Server.Transfer("yyjs.htm")
...... 继续添加 ......
end select
%>

第三个
<%if instr(Request.ServerVariables
("SERVER_NAME"),"kekexi.com")>0 then
response.redirect "index.asp"
else if instr(Request.ServerVariables
("SERVER_NAME"),"4668.com")>0 then
response.redirect "x/index.asp"
else if instr(Request.ServerVariables
("SERVER_NAME"),"web315.com")>0 thenr
esponse.redirect "index3.asp"
end if
end if
end if%>

第四个
<%if Request.ServerVariables("SERVER_NAME")="www.jz5u.com" then
response.redirect "index1.asp"
else if Request.ServerVariables("SERVER_NAME")="www.ce.org.cn" then
response.redirect "index2.asp"
else if Request.ServerVariables("SERVER_NAME")="www.163.com" then
response.redirect "index3.asp"
end if
end if
end if%>


把这些代码保存成 INDEX.asp就可以了

游戏预约提醒

游戏正式上线前,我们将通过免费预约短信提醒您

预约成功,请等待通知!

知道了

当前人数众多,预约失败!

知道了

您已预约,请等待通知!

知道了