| 我贴一段代码出来大家研究,绑定二级域名的 <!---------------Copyright 2007 Jarjin Lee QHWG.COM------------------><%
 dim indexSrc,FrameTitle
 if Request.ServerVariables("SERVER_NAME")="www.china69.com.cn" then
 indexSrc = "index.php"
 FrameTitle = "中国驴友社区-朋友们出游聚会交流的老地方"
 else if Request.ServerVariables("SERVER_NAME")="china69.com.cn" then
 indexSrc = "index.php"
 FrameTitle = "中国驴友社区-户外旅游交友平台"
 else if Request.ServerVariables("SERVER_NAME")="news.china69.com.cn" then
 indexSrc = "html/news.html"
 FrameTitle = "资讯"
 else if Request.ServerVariables("SERVER_NAME")="bbs1.china69.com.cn" then
 indexSrc = "html/bbs.html"
 FrameTitle = "论坛"
 else if Request.ServerVariables("SERVER_NAME")="blog.china69.com.cn" then
 indexSrc = "html/blog.html"
 FrameTitle = "博客空间"
 end if
 end if
 end if
 end if
 end if
 %>
 <html>
 <head><title><%=FrameTitle%></title>
 </head>
 <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" style="overflow-x:hidden;overflow-y:hidden">
 <iframe src="<%=indexSrc%>" width="100%" height="100%" scrolling="auto" frameborder="0"></iframe>
 </body>
 </html>
 请高手修正,这个绝非转向的代码,可以看看我的站点www.china69.com.cn,是这个实现的,以上代码保存为ASP放在网站跟目录,泛解析到本站,主机设置本文件优先,OK!
 
 [ 本帖最后由 apollocq 于 2008-4-28 02:54 编辑 ]
 |