ThinkPHP settings prohibit Baidu and other search engine transcoding (simple and practical), thinkphp is simple and practical. ThinkPHP is set to prohibit Baidu and other search engines from transcoding (simple and practical). thinkphp simple and practical websites will inevitably encounter transcoding problems when reading on mobile terminals, as the boss of domestic search engines, ThinkPHP is set to prohibit Baidu and other search engines from transcoding (simple and practical). thinkphp is simple and practical.
Websites may encounter transcoding problems when reading data on mobile terminals. Baidu, the boss of domestic search engines, naturally becomes the technical leader and implements Baidu transcoding, some websites have achieved the desired results after transcoding, but some websites cannot bear to look directly after Baidu processing. many contents are disordered and Joe's website is also misplaced, as a result, Joe used the Wordpress lepress plug-in. after some Chinese modifications, I feel that it is more suitable for him 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.
Articles you may be interested in:
- ThinkPHP method for retaining the search status by page
- ThinkPHP implements an example of the ajax function similar to the search function on the official website
- How to maintain conditional paging on the home page and search page during Thinkphp search
Parse (simple and practical), thinkphp simple and practical website reading on the mobile end will inevitably encounter transcoding problems, as the boss of domestic search engines...