百度站长工具Sitemap索引格式创建
类别:推广优化   时间:10-13

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


创建sitemap索引格式方法:
<?xml version="1.0" encoding="utf-8"?>
<!-- XML文件需以utf-8编码-->
<sitemapindex>
<!--必填,以 <sitemapindex> 开始标记作为开始,以 </sitemapindex> 结束标记作为结束-->
    <sitemap>
        <!--必填,以<sitemap>标签提交一个子sitemap文件-->
                    <loc>http://example.com/ext/xmlsitemap/add/201201/index_20120106.xml</loc>

        <!--必填,识别sitemap的位置-->
        <lastmod>2009-12-14</lastmod>
        <!--选填,识别相对sitemap文件的修改时间-->
    </sitemap>
    <!--必填,标签闭合-->
</sitemapindex>
<!--必填,标签闭合-->

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

智慧半岛,是一家专注于青岛网站建设青岛网站开发的青岛网络公司,Copyright ©2007-2019 Ebandao.Cn 版权所有 All Rights Reserved.(建议在1366x768以上的浏览器中访问)鲁ICP备08014496号

13153297890