thinkphp set prohibit Baidu and other search engine transcoding (simple and practical), thinkphp simple and practical _php tutorial

Source: Internet
Author: User

thinkphp set prohibit Baidu and other search engine transcoding (simple and practical), thinkphp simple and practical


Website in Mobile reading inevitably will encounter transcoding problems, as the domestic search engine boss Baidu, natural to do the leader of the technology, Baidu Transcoding, some sites after transcoding to achieve the desired results, but some websites after Baidu processing is not bear to look directly, many of the content appeared a disorder, Joe's website also appeared some dislocation, so Joe used the WordPress plugin mobilepress, after some Chinese change, feel than Baidu transcoding more suitable for their own.

Method 1, an explicit declaration in HTTP response, Cache-control:no-transform.

Add ' http_cache_control ' = ' private,no-transform ',//Web cache control in the config.php file

Method 2, the meta-tag explicitly declares Cache-control as No-tranform, in the format:

 
  

The above is a small series to introduce the thinkphp set to prohibit Baidu and other search engine transcoding (simple and practical) related content, I hope to help you.

Articles you may be interested in:

    • thinkphp How to keep pagination in search state
    • thinkphp implement Ajax Imitation official website search function instance
    • Thinkphp method of maintaining conditional paging for home page and search page when searching

http://www.bkjia.com/PHPjc/1100316.html www.bkjia.com true http://www.bkjia.com/PHPjc/1100316.html techarticle thinkphp set to prohibit Baidu and other search engine transcoding (simple and practical), thinkphp simple and practical website in Mobile reading inevitably will encounter transcoding problems, as the domestic search engine boss hundred ...

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