在 Google 搜索控制台中发送我的站点地图时,我收到错误无法读取站点地图

问题描述 投票:0回答:1

谷歌搜索控制台提交我的站点地图路径时出现错误

无法读取站点地图

api返回的状态:200

当前站点地图中的我的链接:*https://noticalivre.web.app/sitemap.xml

我的站点地图返回了:

<?xml version="1.0" encoding="UTF-8"?>
<urlset
    xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    <url>
        <loc>https://noticialivre.web.app</loc>
        <lastmod>2024-08-26T21:18:13+00:00</lastmod>
        <priority>1.00</priority>
        <changefreq>weekly</changefreq>
    </url>
    <url>
        <loc>https://noticialivre.web.app/notice</loc>
        <lastmod>2024-08-26T21:18:13+00:00</lastmod>
        <priority>0.80</priority>
        <changefreq>monthly</changefreq>
    </url>
    <url>
        <loc>https://noticialivre.web.app/politica</loc>
        <lastmod>2024-08-26T21:18:13+00:00</lastmod>
        <priority>0.80</priority>
        <changefreq>monthly</changefreq>
    </url>
    <url>
        <loc>https://noticialivre.web.app/esportes</loc>
        <lastmod>2024-08-26T21:18:13+00:00</lastmod>
        <priority>0.80</priority>
        <changefreq>monthly</changefreq>
    </url>
    <url>
        <loc>https://noticialivre.web.app/militar</loc>
        <lastmod>2024-08-26T21:18:13+00:00</lastmod>
        <priority>1.80</priority>
        <changefreq>monthly</changefreq>
    </url>
    <url>
        <loc>https://noticialivre.web.app/ciencia-e-tecnologia</loc>
        <lastmod>2024-08-26T21:18:13+00:00</lastmod>
        <priority>0.80</priority>
        <changefreq>monthly</changefreq>
    </url>
    <url>
        <loc>https://noticialivre.web.app/economia</loc>
        <lastmod>2024-08-26T21:18:13+00:00</lastmod>
        <priority>0.80</priority>
        <changefreq>monthly</changefreq>
    </url>
    <url>
        <loc>https://noticialivre.web.app/mundo</loc>
        <lastmod>2024-08-26T21:18:13+00:00</lastmod>
        <priority>0.80</priority>
        <changefreq>monthly</changefreq>
    </url>
    <url>
        <loc>https://noticialivre.web.app/previsao-do-tempo</loc>
        <lastmod>2024-08-26T21:18:13+00:00</lastmod>
        <priority>0.80</priority>
        <changefreq>monthly</changefreq>
    </url>
    <url>
        <loc>https://noticialivre.web.app/login</loc>
        <lastmod>2024-08-26T21:18:13+00:00</lastmod>
        <priority>0.00</priority>
        <changefreq>never</changefreq>
    </url>
    <url>
        <loc>https://noticialivre.web.app/cadastro</loc>
        <lastmod>2024-08-26T21:18:13+00:00</lastmod>
        <priority>0.0</priority>
        <changefreq>never</changefreq>
    </url>
    <url>
        <loc>https://noticialivre.web.app/noticia/EQwUnQwUHYY8rTX4A2vE/Mel-alucinogeno-mel-louco-ou-mel-vermelho</loc>
        <lastmod>2024-08-26T21:18:13+00:00</lastmod>
        <priority>1.00</priority>
        <changefreq>never</changefreq>
    </url>
    <url>
        <loc>https://noticialivre.web.app/noticia/TRRtBf4D0MSHxKDqwt0E/Calixcoca---A-vacina-brasileira-que-venceu-premio-internacional</loc>
        <lastmod>2024-08-26T21:18:13+00:00</lastmod>
        <priority>1.00</priority>
        <changefreq>weekly</changefreq>
    </url>
    <url>
        <loc>https://noticialivre.web.app/notice/TRRtBf4D0MSHxKDqwt0E/Calixcoca---A-vacina-brasileira-que-venceu-premio-internacional</loc>
        <priority>1.00</priority>
        <changefreq>weekly</changefreq>
        <lastmod>2024-9-15</lastmod>
    </url>
    <url>
        <loc>https://noticialivre.web.app/notice/TRRtBf4D0MSHxKDqwt0E/Calixcoca---A-vacina-brasileira-que-venceu-premio-internacional</loc>
        <priority>1.00</priority>
        <changefreq>weekly</changefreq>
        <lastmod>2024-9-15</lastmod>
    </url>
</urlset>

我尝试从 Google Search Console 提交我的站点地图 URL,我希望这会起作用,但我 得到一个错误。 重要信息是,我的系统使用 Firebase 托管,但站点地图是从 Firebase 函数 api 的请求返回的。

我的 firebase json:

 {
      "hosting": {
        "site": "noticialivre",
        "source": ".",
        "frameworksBackend": {
          "region": "southamerica-east1"
        },
        "rewrites": [
          {
            "source": "/sitemap.xml",
            "function": {
              "functionId": "sitemap",
              "region": "southamerica-east1"
            }
          },
          {
            "source": "**",
            "destination": "/index.html"
          }
        ]
      }
    }

详细信息:我的api有一个日志来注册请求数据,但我的api从未被调用

single-page-application google-search-console
1个回答
0
投票

我删除了 sitemap.xml 网址,现在我使用的是站点地图类型 html

我的新站点地图在这里: https://noticalivre.web.app/sitemap

我正在尝试添加带有 html 扩展名的站点地图,因为 Google 机器人了解示例链接等于 asdfasdf 这使得索引更容易

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.