REDIRECT the site to the outside chain, redirect the redirect to the _php tutorial

Source: Internet
Author: User

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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.