【发布时间】:2020-03-04 01:10:57
【问题描述】:
我正在尝试让站点地图在 Typo3 9.5.x 中工作。如果我去https://domain.tld/?type=1533906435,我会得到以下页面。
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="/typo3/sysext/seo/Resources/Public/CSS/Sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://domain.tld/index.html?sitemap=pages&cHash=38eee382dd3fc2edb80b67944d477100</loc>
<lastmod>2019-10-07T13:57:04-07:00</lastmod>
</sitemap>
</sitemapindex>
到目前为止一切顺利。但是那里的链接应该将我带到实际的站点地图,而是将我直接带到根页面而无需任何重定向。这发生在 2 个不同的站点上。我没有配置任何特殊的东西,只是启用了 seo 系统扩展并包含了 here 描述的静态模板。
当我将站点地图提交到 Google 的 Search Console 时,它显示“无法获取”,但第二天状态为“成功”并且它发现了 URL。我猜谷歌爬取了根页面并找到了上面的链接。
我如何使站点地图正常工作或某处是否存在错误?
【问题讨论】: