- 石家庄网站建设:关键词竞争度分析指南
- 一段自适应高度的圆角css矩形
- 手机、微信网站建设
- 在C# webapi中的 [FromBody] [FromForm]的区别
- Asp.net非常实用的51个代码(2)
- C#string.Format的一些使用
- 在设计视图中Access允许的九种数据类型
- JS倒计时代码大全
- 企业新网站SEO优化工作应该从哪些方面着手
- .NET/C#中 System.Text.Encoding 类的一个简单用法
邮箱:
手机:15383239821
如果空间可以绑定多个域名,但不支持绑定子目录,实现跳转的方法
Copy code
<script>try { if( self.location == "[url=http://bnnb.net/]http://bnnb.net/[/url][/url]" ) {
top.location.href = "[url=http://bbs.xxxx.net/]http://bbs.xxxx.net/[/url][/url]";
}
else if( self.location == "[url=http://www.xxxx.cn/]http://www.xxxx.cn/[/url][/url]" ) {
top.location.href = "[url=http://wwwxxxx.net]http://wwwxxxx.net[/url][/url]";
}
else {
top.location.href = "[url=http://www.xxxx.net/]http://www.xxxx.net/[/url][/url]";
} } catch(e) { }</script>
一共三层,每层第一个url是你绑定到空间的域名,第二个url是实现跳转到的目标文件夹或者其他网址。绑定到空间但是没在代码里设置的,统统跳转到第三层的那个网址
其中第二层的
Copy codeelse if( self.location == "[url=http://www.xxxx.cn/]http://www.xxxx.cn/[/url][/url]" ) {
top.location.href = "[url=http://www.xxxx.net]http://www.xxxx.net[/url][/url]";
}
可以多次重复,格式一样.
把这些代码做成一个html,放到你空间根目录就行了,这个跳转目标url的效果跟解析的效果是一致的。
-
2012-11-30css position: absolute、relative详解
-
2010-11-06验证码失效
-
2019-11-25dtcms通用标签
-
2011-03-15String.Remove 方法 (Int32)
-
2010-07-20淘宝搜索排名规律及优化方法
-
2013-10-30C# String.Format格式说明
