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的效果跟解析的效果是一致的。
相关新闻
- 提高网站的制高点,网站运营的必读之论 2021-04-20
- 网站如何获得长尾关键词的流量 2021-04-13
- 三级分销佣金设置的基本原理 2020-11-06
- 对新手电商的四个经验之谈 2020-08-15
- 自然搜索流量下跌了原因何在? 2020-08-15