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

如何将无效的URL重定向到其他页面?

很多时候,我们考虑把无效的URL比如:用户拼错的URL、不存在的URL重定向到别的网页。例如:网站的首页、404页面等。如何将无效的URL重定向到其他页面?在httpd.conf或.htaccess文件中使用ErrorDocument来捕获404 (找不到文件)错误:ErrorDocument 404 /index.htmlDirectoryIndex index.html /path/to/no

Public @ 2011-02-03 16:09:57

百度Sitemap支持哪些格式

百度Sitemap协议支持文本格式和xml格式,可以根据自己情况来选择任意一种格式组织sitemap。具体格式说明及示例如下:1.第一种格式样例:txt文本格式在一个txt文本列明需要向百度提交的链接地址,将txt文本文件通过搜索资源平台进行提交http://www.example.com/repaste/101562698_5230191316.htmlhttp://www.example.co

Public @ 2009-12-25 16:09:44

站点地图创建方法

创建站点地图的方法如下: 1.确定网站结构:确定网站的目录结构和分类,以及网页之间的链接关系。 2.创建XML文件:将网站的链接和网页信息保存在一个XML文件中。 3.注册站点:将站点地图提交给主要的搜索引擎(如Google、Baidu等)进行注册。 4.检查更新:每次网站更新,都需要更新站点地图,以保持站点地图的完整性和准确性。 5.使用工具:使用在线工具或插件轻松创建站点地图,例如:

Public @ 2023-04-25 08:50:07

更多您感兴趣的搜索

0.439699s