码迷,mamicode.com
首页 > Web开发 > 详细

同一空间,如何实现两个域名指向两个网站

时间:2015-01-22 23:22:34      阅读:206      评论:0      收藏:0      [点我收藏+]

标签:

<SCRIPT>try { if( self.location == "http://域名一/" ) { top.location.href = "目录一/index.html"; } else if( self.location == "http://域名二/" ) { top.location.href = "目录二/index.html"; } else { } } catch(e) { }</SCRIPT>

同一空间,如何实现两个域名指向两个网站

标签:

原文地址:http://www.cnblogs.com/csharphuang/p/4242911.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!