文章分类 | 软件分类 | 最新软件 | 杀毒软件 | 实用软件  | MTV下载  | 设为首页 |
  | 下载分类 | 最近更新
您的位置: 首页 >> 文章首页 >> 精文荟萃 >> 建站交流 >>  
建站交流点击TOP10
·2005八种必死网站探密 ----你的网站有这毛病么2006-2-9 20:45:20
·网站成功吸引眼珠五大法2006-2-9 18:02:37
·中国个人网站——新经济中的非主流2006-2-9 18:01:51
·2005八种必死网站探密 ----你的网站有这毛病么2006-2-9 20:45:55
·蒙你没商量:COM域名是“国际域名”2006-2-9 9:06:06
·人民网与新华网比较 细节入手构筑网站个性化风格2006-2-9 9:04:56
·网游炒家生财大多靠作弊 平均每月能挣3000元2006-2-9 10:06:03
·网站 推销有术2006-2-9 20:45:04
·网站的推广与策划 与如何建立一个网站?规划、宣传等2006-2-9 18:53:51
·网页设计师:怎么改善现有网站2006-2-9 10:08:55
精文荟萃点击TOP10
·轻松打造一个漂亮又专业的Flash屏保2006-2-5 13:34:29
·DIY初学者必读 解读CRT显示器的性能参数2006-2-8 18:28:40
·WAP网大全2006-2-9 19:02:47
·“3.15”网站打假专题——中国大陆TOP500网站排行榜(Alexa过滤版)2006-2-9 10:29:26
·DOS教学2006-2-5 13:07:32
·硬盘分区全攻略2006-2-9 10:20:26
·平面设计常用制作尺寸2006-2-5 12:25:24
·2005八种必死网站探密 ----你的网站有这毛病么2006-2-9 20:45:20
·红牌罚下 Google大规模封杀中文作弊网站纪实2006-2-9 16:24:49
·只修改config中一个值 DOOM3速度就提升?2006-2-5 16:40:03

 

多个域名绑定一个空间互不影响
作者:我去下载           时间:2006-2-9 20:32:31


PHP的代码
$domain_net="abc.com";
$dot_net_url="bbs/";
$dot_com_url="flash";
if(($HTTP_HOST=="$domain_net")or($HTTP_HOST=="www.$domain_net"))
{
Header("Location: $dot_net_url");
}
else
{
Header("Location: $dot_com_url");
}
?>
,
asp第一个
<%if Request.ServerVariables("SERVER_NAME")="www.yyjs.com" then
response.redirect "zkj"
else
response.redirect "i.htm"
end if%>
第二个
<%
select case request.servervariables("http_host")
case "www.yyjs.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.yyjs.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%>
PS:在落伍论坛找到的.没有进行试验.
分页:
相关文章:
Copyright© 2005-2006 wqxz.com, All Rights Reserved. 购买虚拟主机请与本站联系