301 Jump method: "".
Method to implement 301 jump through js code:
Use this JS code in the corresponding web page file 301 jump can be achieved, such as jumping a domain name without www to a domain name with www. The code is as follows:
<script language=javascript> if (document.domain ==""yisu.com"") this.location = ""http://www.yisu.com"" + this.location.pathname + this.location.search; </script>
The above is the detailed content of How to implement 301 jump through js code. For more information, please follow other related articles on the PHP Chinese website!