Categories


Tags


什么是移动Sitemap协议,如何提交移动Sitemap协议

百度推出了移动Sitemap协议,用于将网址提交给移动搜索收录。百度移动Sitemap协议是在标准Sitemap协议基础上制定的,增加了<mobile:mobile/>标签,它有四种取值:

<mobile:mobile/> :移动网页

<mobile:mobile type="mobile"/> :移动网页

<mobile:mobile type="pc,mobile"/>:自适应网页

<mobile:mobile type="htmladapt"/>:代码适配

无该上述标签表示为PC网页

下方样例相当于向百度移动搜索提交了一个移动网页:http://m.example.com/index.html,向PC搜索提交了一个传统网页:http://www.example.com/index.html,同时向移动搜索和PC搜索提交了一个自适配网页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="pc,mobile"/>

<lastmod>2009-12-14</lastmod>

<changefreq>daily</changefreq>

<priority>0.8</priority>

</url>

<url>

<loc>http://www.example.com/htmladapt.html</loc>

<mobile:mobile type="htmladapt"/>

<lastmod>2009-12-14</lastmod>

<changefreq>daily</changefreq>

<priority>0.8</priority>

</url>

</urlset>

按照移动Sitemap协议做好Sitemap后,在Sitemap工具点击添加新数据提交,与提交普通Sitemap方式一致。

来源:百度搜索资源平台 百度搜索学堂


Public @ 2014-08-22 16:09:43

绝对路径与相对路径有什么区别?

绝对路径与相对路径有什么区别?在Html的应用中经常会涉及到绝对路径与相对路径的概念(如超级链接、图片等),这两种路径所表达的意义在于绝对路径可以精确引用,而相对路径则是模糊应用概念,只是在目标目录下找到引用,所以大多数Html工作者都会选择使用相对路径。绝对路径与相对路径有什么区别?相对路径的三种写法介绍  一、绝对路径  绝对路径是指文件在硬盘上真正存在的路径。例如“bg.jpg”这个图片是存

Public @ 2020-01-09 16:11:48

什么是ETag?ETag作用有哪些

有关ETag的简介:ETag是URL的TAG,主要是标志URL对象有没发生改变,用于客户端的缓存。服务器产生ETag,并在HTTP响应头中将其传送到客户端,服务器用它来判断页面是否被修改过,如果未修改返回304,无需传输整个对象。HTTP协议里ETag是“被请求变量的实体值”。站点启用ETag的好处有哪些?1、Sitemap启用ETag后,百度就可以快速的知道Sitemap的更新,在内容没有做更改

Public @ 2011-12-13 16:03:52

更多您感兴趣的搜索

0.512431s