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

问题描述

我无法将此主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有好处吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)