网站地图在typo3 9.5.x中不起作用

网站地图在typo3 9.5.x中不起作用,typo3,sitemap,typo3-9.x,Typo3,Sitemap,Typo3 9.x,我正在尝试让一个网站地图在Typo3 9.5.x中工作。如果我去,我会看到下一页 <?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

我正在尝试让一个网站地图在Typo3 9.5.x中工作。如果我去,我会看到下一页

<?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&amp;cHash=38eee382dd3fc2edb80b67944d477100</loc>
            <lastmod>2019-10-07T13:57:04-07:00</lastmod>
        </sitemap>

</sitemapindex>

https://domain.tld/index.html?sitemap=pages&cHash=38eee382dd3fc2edb80b67944d477100
2019-10-07T13:57:04-07:00
到目前为止还不错。但是那里的链接应该把我带到实际的站点地图,而是直接带我到根页面,没有任何重定向。这发生在两个不同的站点上。我没有配置任何特殊的东西,只是启用了seo系统扩展,并包含了所描述的静态模板

当我将网站地图提交到谷歌的搜索控制台时,它说“无法获取”,但第二天状态是“成功”,它发现了URL。我猜谷歌抓取了根页面并找到了上面的链接


如何让站点地图正常工作,或者某个地方有bug吗?

站点地图页面路径中的
index.html
部分在我看来很奇怪。 请尝试在没有
index.html
部分的情况下打开loc url,好吗?
如果你能看到网站地图,我们必须看看这个
index.html
是从哪里来的。

Bingo,这让我走上了正确的道路。仅仅删除“index.html”并没有做到这一点。我必须删除siteconfig中的routeEnhancer。在那里,我设置了以下routeEnhancers:PageTypeSuffix:type:PageType默认值:'.html'`map:{}使每个页面都以.htmlSorry结尾,以便在上面的注释中格式化。格式在注释中似乎不起作用。