百度站長工具中提供了四種鏈接提交途徑,其中一種是Sitemap,將網址提交給移動搜索收錄。
Sitemap提交是通過Site生成器生成Sitemap文件,將Sitemap文件上傳到網站根目錄下,使用百度站長工具上傳網站地圖。
?
百度站長工具移動Sitemap協議的寫法
移動Sitemap協議在標準Sitemap協議上增加了<mobile:mobile/>標簽,分別為:
1、<mobile:mobile/>?:移動網頁
傳統PC站的sitemap寫法之前的文章中有介紹過,這里就不再細說了。(創建文本形式的Sitemap)
2、<mobile:mobile type="mobile"/>?:移動網頁? ?
提交移動網頁的sitemap協議寫法:
<?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>?
3、<mobile:mobile type="pc,mobile"/>:自適應網頁
提交自適應網頁的sitemap協議寫法:
<?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>?
4、<mobile:mobile type="htmladapt"/>:代碼適配
提交代碼適配網頁的sitemap協議寫法:
<?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的作用:
1、提交Sitemap給搜索引擎做為一個引導作用,方便搜索引擎索引網站。
2、搜索引擎通過Sitemap更清晰了解網站內部鏈接層次和結構,提高網站內容收錄。?
3、通過Sitemap提供網站的其他信息,比如上次更新日期、Sitemap文件的更新頻率等,給百度蜘蛛作為參考。
閱讀本文的人還可以閱讀: