【问题标题】:Why isn't my sitemap being read by Google Search Console after changing the name?为什么更改名称后 Google Search Console 无法读取我的站点地图?
【发布时间】:2021-11-02 11:38:03
【问题描述】:

以前我的站点地图正在被 Google Search Console 读取。两周前我更改了我的站点地图的名称,从那时起它显示“无法读取站点地图”。单击打开的站点地图链接会打开我的站点地图,因此它是正确的链接。是不是我的格式有问题?站点地图在下方。

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://xman2156.github.io/TOH/</loc>
    <lastmod>2021-09-04</lastmod>
  </url>
  <url>
    <loc>https://xman2156.github.io/amphibia/</loc>
    <lastmod>2021-09-04</lastmod>
  </url>
</urlset>

【问题讨论】:

    标签: xml sitemap


    【解决方案1】:

    尝试将 robots.txt 添加到项目库中;

    User-agent: *
    Sitemap: htts://you-domain/sitemap.xml
    

    【讨论】:

      猜你喜欢
      • 2023-04-09
      • 1970-01-01
      • 2023-01-16
      • 2018-07-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多