說明:如果您有任何疑問或想咨詢其他業(yè)務(wù)請撥打電話 400 685 0732
全網(wǎng)監(jiān)測海量數(shù)據(jù)按需發(fā)布監(jiān)測預(yù)警
實(shí)時(shí)把握輿情動(dòng)態(tài)精準(zhǔn)追溯信息源頭
rude:
百度站長平臺(tái)發(fā)布消息說,sitemap工具又要升級(jí)內(nèi)測了。
這次升級(jí),是為了支持可以提交移動(dòng)站點(diǎn)的地圖,至于獲得內(nèi)測資格的方式,是發(fā)送你的站長賬號(hào)昵稱及網(wǎng)站域名到[email protected]。
前段時(shí)間觀察m.baidu.com收錄的某網(wǎng)站的首頁,雖然url顯示的是m.***.com,但是title卻是和PC端的保持了一致。不知道這次提交了地圖之后,網(wǎng)站在移動(dòng)端結(jié)果的展現(xiàn)會(huì)不會(huì)有些差異?
于是乎開始準(zhǔn)備申請內(nèi)測資格,同時(shí)看看做一個(gè)移動(dòng)站的網(wǎng)站地圖。
之前沒注意,以為移動(dòng)站和pc站的xml地圖的格式一樣,亂七八糟的搞了一個(gè)直接按照提交pc站提交的方式提交了下,竟然還按時(shí)顯示并抓取了,直到細(xì)看了一下,才發(fā)現(xiàn)移動(dòng)站的地圖和pc站的是有差異的,如:
pc站的開頭為:
<?xml?version=”1.0″?encoding=”utf-8″?>
<urlset>
而移動(dòng)站的聲明為:
<?xml version=”1.0″ encoding=”UTF-8″ ?>
<urlset xmlns=”http://www.sitemaps.org/schemas/sitemap/0.9″
xmlns:mobile=”http://www.baidu.com/schemas/sitemap-mobile/1/”>
除此之外,在移動(dòng)站中還增加了<mobile:mobile/>標(biāo)簽,它有三種取值:
<mobile:mobile/> :移動(dòng)網(wǎng)頁
<mobile:mobile type=”mobile”/> :移動(dòng)網(wǎng)頁
<mobile:mobile type=”autoadapt”/>:自適配網(wǎng)頁,適用于同一網(wǎng)址頁面,會(huì)隨設(shè)備不同改變展現(xiàn)的情況。
下方樣例相當(dāng)于向百度移動(dòng)搜索提交了一個(gè)移動(dòng)網(wǎng)頁:http://m.example.com/index.html,向PC搜索提交了一個(gè)傳統(tǒng)網(wǎng)頁:http://www.example.com/index.html,同時(shí)向移動(dòng)搜索和PC搜索提交了一個(gè)自適配網(wǎng)頁http://www.example.com/autoadapt.html:
<?xml version=”1.0″ encoding=”UTF-8″ ?>
<urlset xmlns=”http://www.sitemaps.org/schemas/sitemap/0.9″
xmlns:mobile=”http://www.baidu.com/schemas/sitemap-mobile/1/”>
<url>
<loc>http://m.example.com/index.html</loc>
<mobile:mobile type=”mobile”/>
<lastmod>2009-12-14</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>http://www.example.com/index.html</loc>
<lastmod>2009-12-14</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>http://www.example.com/autoadapt.html</loc>
<mobile:mobile type=”autoadapt”/>
<lastmod>2009-12-14</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
</urlset>
也算是漲姿勢了,按照百度的這個(gè)說法,似乎pc和移動(dòng)站站點(diǎn)的xml地圖可以做到一個(gè)中來。但是為了起見,還是分來為妙吧,如果你是一個(gè)單獨(dú)的移動(dòng)站,用<mobile:mobile type=”mobile”/>,如果你是一個(gè)自適配的站點(diǎn),用<mobile:mobile type=”autoadapt”/>。
說明:如果您有任何疑問或想咨詢其他業(yè)務(wù)請撥打電話 400 685 0732