百度站长工具移动Sitemap协议的写法514
百度站长工具中提供了四种链接提交途径,其中一种是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文件的更新频率等,给百度蜘蛛作为参考。
2022-05-27
上一篇:网站改版工具的使用方法
最新文章
深入剖析 SEO 谷歌关键词工具:全面指南
https://www.jisuseo.cn/49534.html
宜丰SEO优化全指南:打造排名靠前的网站
https://www.jisuseo.cn/49533.html
SEO 软件资源运营:掌控优化神器,提升网站流量
https://www.jisuseo.cn/49532.html
黔西SEO优化指南:提升网站排名、吸引更多流量
https://www.jisuseo.cn/49531.html
湖南谷歌SEO价格指南:您的全面指南
https://www.jisuseo.cn/49530.html
热门文章
油管youtube视频无法打开的原因
https://www.jisuseo.cn/9544.html
百度蜘蛛的鉴别方法
百度真假蜘蛛IP如何识别?判断百度蜘蛛的鉴别方法
刚刚!今日头条窃取百度搜索结果实锤![3989字]
https://www.jisuseo.cn/19376.html
外链和友情链接的区别
外链和友情链接的区别
HTML代码建议
https://www.jisuseo.cn/386.html