99re热这里只有精品视频,7777色鬼xxxx欧美色妇,国产成人精品一区二三区在线观看,内射爽无广熟女亚洲,精品人妻av一区二区三区

MIP 讓搜索發(fā)現(xiàn)你的頁面

2018-11-07 17:28 更新

在某些情況下,站點(diǎn)對于同一個html頁面,可能存在兩種,一個是mip頁,一個是原頁面。百度會抓取這兩個頁面,并將它們聯(lián)系起來。

添加<link rel="miphtml">指向MIP頁,添加<link rel="canonical">指向原頁面。這樣可以優(yōu)先展示MIP頁,且將MIP頁點(diǎn)擊權(quán)重計算給原頁面。

在head中添加link標(biāo)簽讓百度搜索發(fā)現(xiàn)你的頁面

兩種頁面同時存在

在非 MIP 頁中添加:

<link rel="miphtml" href="https://m.baidu.com/static/ala/mip/mip-demo.html">

在 MIP 頁中添加:

<link rel="canonical" href="https://m.baidu.com/static/ala/mip/mip-demo.html">

如果只有 MIP 頁

同樣需要添加,指向自己:

<link rel="canonical" href="https://m.baidu.com/static/ala/mip/mip-demo.html">

通過添加meta標(biāo)簽集成第三方平臺

對于一些第三方的站點(diǎn),這些站點(diǎn)嵌入了mip或者引入了mip,他們除了要只知道這是一個mip頁面之外還要了解一些mip頁面的開發(fā)的細(xì)節(jié)。比如:這個頁面是一個新聞文章,還是一個視頻,因此頁面需要有一個摘要來進(jìn)行簡短的描述,同時也需要一個小的示意圖。

不只是mip頁面有這個問題,所有的web頁面都有這個問題。在一些平臺上,meta標(biāo)簽不是必須的,但也有一些平臺確實(shí)一定要加的,如果沒有按照規(guī)范添加正確的meta標(biāo)簽,平臺就不會正確展現(xiàn)你的頁面內(nèi)容。

1)Schema.org

schemas 標(biāo)記,即 html 標(biāo)簽,站長可以使用這些標(biāo)簽來以搜索引擎認(rèn)可的方式來標(biāo)記他們的網(wǎng)頁。

Schema.org 是一份公開的、標(biāo)準(zhǔn)的 schema 詞匯表,它能夠給站長們參考使用。同時能幫助搜索引擎理解網(wǎng)頁上的信息,從而讓搜索結(jié)果內(nèi)容更豐富,用戶搜索到的頁面也就更精準(zhǔn)。

示例

 <script type="application/ld+json">
  {
    "@context": "http://schema.org",
    "@type": "NewsArticle",
    "mainEntityOfPage": "https://m.baidu.com/static/ala/mip/mip-demo.html",
    "headline": "標(biāo)題",
    "datePublished": "1907-05-05T12:02:41Z",
    "dateModified": "1907-05-05T12:02:41Z",
    "description": "百度 MIP 頁面 demo",
    "author": {
      "@type": "Person",
      "name": "Baidu"
    },
    "publisher": {
      "@type": "Organization",
      "name": "Baidu",
      "logo": {
        "@type": "ImageObject",
        "url": "//m.baidu.com/static/index/plus/plus_logo.png",
        "width": 600,
        "height": 60
      }
    },
    "image": {
      "@type": "ImageObject",
      "url": "//m.baidu.com/static/index/plus/plus_logo.png",
      "height": 2000,
      "width": 800
    }
  }
</script>

可以通過資源引入/schema了解更多。

以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號