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