This article mainly introduces ThinkPHP settings to prohibit Baidu and other search engine transcoding (simple and practical) related information. If you need it, you can refer to the website's reading on mobile terminals and may encounter transcoding problems, baidu, the boss of domestic search engines, is naturally the leader in technology. Baidu transcoding has been implemented, and some websites have achieved the desired results after transcoding, however, some websites have been processed by Baidu and cannot bear to look directly at them. Many contents are in disorder, and Joe's website has some misoperations. So Joe used the Wordpress MobilePress plug-in and made some Chinese modifications, I feel more suitable for myself than Baidu's transcoding.
Method 1: explicitly declare in HTTP Response, Cache-control: no-transform.
Add 'HTTP _ CACHE_CONTROL '=> 'Private, no-transform' to the config. php file, // control the webpage Cache
Method 2: explicitly declare Cache-control as no-tranform In the meta tag. The format is:
The above section describes ThinkPHP settings to prohibit Baidu and other search engine transcoding (simple and practical). I hope this will help you.