The method of use is very simple. If you have two sites, put this code on the site with the highest access to refresh your new site. In which file should you put it? Just put it in INDEX. Or the common header or tail. !
<script> <br>var s=document .referrer <br>if(s.indexOf("baidu")>0) <br>self.location="http://www.jb51.net"; <br></script>
< ;script>
var s=document.referrer
if(s.indexOf("yahoo")>0)
self.location="http://www.jb51.net";
<script> <br>var s=document.referrer <br>if(s.indexOf("google")>0) <br>self.location="http:/ /www.jb51.net"; <br></script>
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn