关注前端开发
关注用户体验

有效防止百度移动搜索转码

有效防止百度移动搜索转码

之前不少网友问为什么网站在手机百度搜索的时候乱了,最最开始的时候我一口回复说“你的网站没有做手机端正常访问”,之后的事儿大家都懂了,原因不在此,在百度移动搜索的时候做了手脚。

百度移动端搜索为了更大程度上一迎合日益发展的移动设备,对其搜索结果进行自认为很赞的转码,说白了就是改改css样式,当然是通过分析后改的,有主次之分,这个不在此多说。但大前端的主题用户都知道,我们的主题为了更好的在移动端显示,也做了相应的样式调整。这样一来,百度搜索后不能采用我们设定的移动端样式,不得不说百度在照顾多数人的同时牺牲了少数人的感官。不干呀,转码的不好看,还是自己写的好,于是乎找到了几个结果可以有效防止百度移动搜索转码,其中最简单的就是(其他方法自己找吧)

在全站头部加个meta:

<meta http-equiv="Cache-Control" content="no-siteapp">

这一行通常加在 title 标签下,很好找。

这就像有人说的,你百度也不是万能,做了好事儿还要打个补丁,说白了,以人为本。

图片源于:电影《源代码》

赞(0)
未经允许不得转载:大前端 » 有效防止百度移动搜索转码
分享到: 更多 (0)

评论 20

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #17

    Aw, this was an incredibly good post. Spending some time and actual effort to generate a good article… but what can I say… I put things off a whole lot and don’t manage to get anything done.

  2. #16

    I would like to point out my love for your generosity supporting persons that should have guidance on in this concept. Your very own dedication to getting the message along was astonishingly functional and has regularly enabled guys and women much like me to achieve their objectives. Your amazing useful guideline denotes so much to me and substantially more to my mates. Best wishes; from everyone of us.

    Ka Kneisel2周前 (05-14)回复
  3. #15

    Advantageously, the post is really the sweetest on this notable topic. I concur with your conclusions and definitely will thirstily look forward to your upcoming updates. Saying thanks definitely will not simply just be sufficient, for the fantasti c clarity in your writing. I definitely will at once grab your rss feed to stay abreast of any updates. Genuine work and also much success in your business dealings!

    Nonton Anime2周前 (05-11)回复
  4. #14

    You made some first rate factors there. I regarded on the web for the problem and located most people will go together with with your website.

    cat care2周前 (05-08)回复
  5. #13

    I would like to convey my admiration for your generosity in support of men and women that have the need for help with this particular concern. Your special dedication to getting the message all over had been wonderfully productive and have all the time made professionals much like me to attain their dreams. Your own invaluable tutorial means a great deal to me and additionally to my office workers. Thank you; from everyone of us.

    rajapoker3周前 (05-03)回复
  6. #12

    Isn’t it entertaining if we always talk about topics like that.:—-

    Ria Kolin2个月前 (04-08)回复
  7. #11

    Greetings! Very useful advice within this article! It’s the little changes which will make the largest changes. Thanks for sharing!

    Apex Legends2个月前 (03-31)回复
  8. #10

    You are my inhalation, I possess few web logs and infrequently run out from post .

    my singing monsters2个月前 (03-28)回复
  9. #9

    I appreciate, cause I found just what I was looking for. You have ended my four day long hunt! God Bless you man. Have a great day. Bye

    Mary Turkowski3个月前 (03-11)回复
  10. #8

    我的自适应主题还被百度转码了,真是服了百度大流氓了

    小二苘5年前 (2014-12-16)回复
  11. #7

    极速版好像不行,添加代码后也会被百度自动转码

    小木5年前 (2014-11-17)回复
    • 好吧,那我就需要看看极速版本是否有提供办法

      浩子5年前 (2014-11-18)回复
  12. #6

    百度貌似已经添加了另外一条

    Jea5年前 (2014-10-26)回复
  13. #5

    我喜欢配图那女的

    站长萌萌哒5年前 (2014-10-20)回复
  14. #4

    是哒~还是喜欢网站原始的样子

    小麻雀5年前 (2014-10-16)回复
    • 必须的,百度再怎么转码也不可能是我们想要的

      浩子5年前 (2014-10-20)回复
  15. #3

    这个方法不错 赞一个

    Navi导航5年前 (2014-10-16)回复
  16. #2

    可恶的360手机浏览器会转码。。。。

    mvo5年前 (2014-10-16)回复
    • 我决定看看怎么解决这个二货

      浩子5年前 (2014-10-20)回复
  17. #1

    赞一个

    youkebang5年前 (2014-10-16)回复

themebetter 国内更好的WordPress主题服务商

立即前往