在某些情況下,站點(diǎn)對于同一個html頁面,可能存在兩種,一個是mip頁,一個是原頁面。百度會抓取這兩個頁面,并將它們聯(lián)系起來。
添加<link rel="miphtml">
指向MIP頁,添加<link rel="canonical">
指向原頁面。這樣可以優(yōu)先展示MIP頁,且將MIP頁點(diǎn)擊權(quá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">
同樣需要添加,指向自己:
<link rel="canonical" href="https://m.baidu.com/static/ala/mip/mip-demo.html">
對于一些第三方的站點(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)容。
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了解更多。
更多建議: