百度站長工具移動Sitemap協議的寫法建站知識
導讀:1建站知識百度站長工具中提供了四種鏈接提交途徑,其中一種是Sitemap,將網址提交給移動搜索收錄。 Sitemap提交是通過Site生成器生成Sitemap文件,將Si網seo優化趨勢seo網站優化軟件。
百度站長工具中提供了四種鏈接提交途徑,其中一種是Sitemap,將網址提交給移動搜索收錄。
Sitemap提交是通過Site生成器生成Sitemap文件,將Sitemap文件上傳到網站根目錄下,使用百度站長工具上傳網站地圖。
百度站長工具移動Sitemap協議的寫法
移動Sitemap協議在標準Sitemap協議上增加了<mobile:mobile/>標簽,分別為:
1、<mobile:mobile/> :移動網頁
傳統PC站的sitemap寫法之前的文章中有介紹過,這里就不再細說了。(創建文本形式的Sitemap)
2、<mobile:mobile type="mobile"/> :移動網頁
網seo優化趨勢 提交移動網頁的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>
聲明: 本文由我的SEOUC技術文章主頁發布于:2023-05-23 ,文章百度站長工具移動Sitemap協議的寫法建站知識主要講述寫法,協議,百度網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_5736.html