Google网站管理员工具在站点地图标记中显示错误

时间:2020-08-24 08:42:43

标签: xml gzip sitemap master xml-sitemap

我无法将此主XML提交给Google网站管理员

当我尝试将站点地图提交给网站站长进行索引时,它给了我这个错误:

Sitemap index can be read but has errors, Invalid XML tag This tag was not recognized. Please fix it and resubmit.

Line 6 Parent  tag:  sitemap
               Tag:  changefreq

Line 7 Parent  tag:  sitemap
               Tag:  priority

Line 12 Parent tag:  sitemap
               Tag:  changefreq

我的主要sitemap.xml代码

<?xml version="1.0" encoding="utf-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://example.com/sitemap-001.xml.gz</loc>
    <lastmod>2020-08-24</lastmod>
    <changefreq>hourly</changefreq>
    <priority>0.8</priority>
  </sitemap>
  <sitemap>
    <loc>https://example.com/sitemap-002.xml.gz</loc>
    <lastmod>2020-08-24</lastmod>
    <changefreq>hourly</changefreq>
    <priority>0.8</priority>
  </sitemap>
  <sitemap>
    <loc>https://example.com/sitemap-003.xml.gz</loc>
    <lastmod>2020-08-24</lastmod>
    <changefreq>hourly</changefreq>
    <priority>0.8</priority>
  </sitemap>
  <sitemap>
    <loc>https://example.com/sitemap-004.xml.gz</loc>
    <lastmod>2020-08-24</lastmod>
    <changefreq>hourly</changefreq>
    <priority>0.8</priority>
  </sitemap>
  <sitemap>
    <loc>https://example.com/sitemap-005.xml.gz</loc>
    <lastmod>2020-08-24</lastmod>
    <changefreq>hourly</changefreq>
    <priority>0.8</priority>
  </sitemap>
  <sitemap>
    <loc>https://example.com/sitemap-006.xml.gz</loc>
    <lastmod>2020-08-24</lastmod>
    <changefreq>hourly</changefreq>
    <priority>0.8</priority>
  </sitemap>
  <sitemap>
    <loc>https://example.com/sitemap-007.xml.gz</loc>
    <lastmod>2020-08-24</lastmod>
    <changefreq>hourly</changefreq>
    <priority>0.8</priority>
  </sitemap>
</sitemapindex>

第二点,在站点地图中使用gz压缩对SEO有好处吗?

0 个答案:

没有答案
相关问题