REDIRECT the site to the outside chain, redirect to the site redirect jump
In the Emlog comment function, the message person can fill in the website address. But there are times when we don't want to have too many cluttered external links on our site. Of course, we can add the nofollow attribute to the link. That is, the link code is
Along
When we add the rel= "nofollow" attribute to this link, we tell the search engine that the link address does not pass the weight. Shaped like:
Along
And here, along the journey with you, is to redirect the address of the outside chain. That is, if the outer chain address is http://www.100sucai.com, through redirection, it will become http://Your website address/go.php?url=http://www.100sucai.com still visit the target site http:// Www.100sucai.com
First download the go. zip file To extract the go.php file to the root of your website, and then replace the http://www.100sucai.com in go.php with your website address. Finally, you only need to put the link address you want to convert in your website by
After completing the go.php modification and uploading to the root directory, open the template's module.php file and find the following code in the comments list (similar to each version method, the exact location may be different):
Replace it with:
You can complete the redirect conversion to the Emlog Blog reviewer URL link. Further, you can also open robot.txt in the following line add the code below to reject the redirected external link being indexed by the search engine! : Disallow:/go.php?url=*
Additional Note: Open go.php, you can also set whether it is a direct jump, $directGo set to False, a framework to load the outer chain page.
http://www.bkjia.com/PHPjc/1048759.html www.bkjia.com true http://www.bkjia.com/PHPjc/1048759.html techarticle to redirect the site outside the chain redirect, the site redirect jump in Emlog comment function, the message can fill out their website address. But many times we do not want to own the site ...