加入收藏 | 设为首页 | 会员中心 | 我要投稿 应用网_丽江站长网 (http://www.0888zz.com/)- 科技、建站、数据工具、云上网络、机器学习!
当前位置: 首页 > 综合聚焦 > 创业热点 > 经验 > 正文

站长学院:移动网站如何快速向百度提交数据?

发布时间:2016-06-01 02:32:12 所属栏目:经验 来源:站长学院
导读:随着网民对于移动化趋势的加强,移动端流量获取成为了网站的重中之重。现在主流的数据提交方式共有跳转适配、代码适配、自适应这三种……

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

<mobile:mobile/> :移动网页

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

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

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

百度移动Sitemap协议的写法

这里关于传统PC站的sitemap写法就不说了。

1、向百度提交移动网页的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>

2、向百度提交自适应网页的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>

3、向百度提交代码适配网页的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协议做好Sitemap后,在Sitemap工具点击添加新数据提交,与提交普通Sitemap方式一致。

Sitemap提交后,多久能被百度处理?

Sitemap数据提交后,一般在1小时内百度会开始处理。在以后的调度抓取中,如果您的sitemap支持etag,我们会更频繁抓取sitemap文件,从而及时发现内容更新;否则抓取的周期会比较长。

注:相关网站建设技巧阅读请移步到建站教程频道。

推荐:用高性能云服务器 稳定的网站才能更赚钱

(编辑:应用网_丽江站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读