快推365SEO问答正文

百度站长工具Sitemap索引格式创建

2020/12/17 15:47:05

260浏览量

回答

2020/12/17 15:48:42

百度站长工具Sitemap索引格式创建

如果您需要提交大量Sitemap文件,可以通过将其列在Sitemap索引文件中,然后将该索引文件提交,这样就不需要分别提交每个文件。


创建sitemap索引格式方法:

<?xml version="1.0" encoding="utf-8"?>

<!-- XML文件需以utf-8编码-->

<sitemapindex>

<!--必填,以 <sitemapindex> 开始标记作为开始,以 </sitemapindex> 结束标记作为结束-->

   <sitemap>

       <!--必填,以<sitemap>标签提交一个子sitemap文件-->

                   <loc>http://example.com/extxm<x>lsitemap/add/201201/index_20120106.xml</loc>

       <!--必填,识别sitemap的位置-->

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

       <!--选填,识别相对sitemap文件的修改时间-->

   </sitemap>

   <!--必填,标签闭合-->

</sitemapindex>

<!--必填,标签闭合-->


有多个Sitemap,按上述格式重复<sitemap></sitemap>之间的片断,列明所有Sitemap地址,向站长平台进行提交。



此教程来源于《搜外网-夫唯SEO培训》,网址:https://www.seowhy.com/

本教程连接:https://www.seowhy.com/a/928.html,为原创表示感谢!

0+1

0+1