三、移動Sitemap
百度推出了移動Sitemap協(xié)議,用于將網(wǎng)址提交給移動搜索收錄。百度移動Sitemap協(xié)議是在標準Sitemap協(xié)議基礎(chǔ)上制定的,增加了<mobile:mobile/>標簽,它有四種取值:
<mobile:mobile/> :移動網(wǎng)頁
<mobile:mobile type="mobile"/> :移動網(wǎng)頁
<mobile:mobile type="pc,mobile"/>:自適應(yīng)網(wǎng)頁
<mobile:mobile type="htmladapt"/>:代碼適配
百度移動Sitemap協(xié)議的寫法
這里關(guān)于傳統(tǒng)PC站的sitemap寫法就不說了。
1、向百度提交移動網(wǎng)頁的sitemap協(xié)議寫法樣例:
<?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.abc.com/index.html</loc>
<mobile:mobiletype="mobile"/>
<lastmod>2009-12-14</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
</urlset>
2、向百度提交自適應(yīng)網(wǎng)頁的sitemap協(xié)議寫法樣例:
<?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://www.abc.com/autoadapt.html</loc>
<mobile:mobiletype="pc,mobile"/>
<lastmod>2009-12-14</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
</urlset>
3、向百度提交代碼適配網(wǎng)頁的sitemap協(xié)議寫法樣例:
<?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://www.abc.com/htmladapt.html</loc>
<mobile:mobiletype="htmladapt"/>
<lastmod>2009-12-14</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
</urlset>
按照移動Sitemap協(xié)議做好Sitemap后,在Sitemap工具點擊添加新數(shù)據(jù)提交,與提交普通Sitemap方式一致。
Sitemap提交后,多久能被百度處理?
Sitemap數(shù)據(jù)提交后,一般在1小時內(nèi)百度會開始處理。在以后的調(diào)度抓取中,如果您的sitemap支持etag,我們會更頻繁抓取sitemap文件,從而及時發(fā)現(xiàn)內(nèi)容更新;否則抓取的周期會比較長。