简体   繁体   English

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

[英]Sitemap not really working in typo3 9.5.x

I'm trying to get a sitemap working in Typo3 9.5.x.我正在尝试获取在 Typo3 9.5.x 中工作的站点地图。 If I go to https://domain.tld/?type=1533906435 I get the following page.如果我从 go 到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&amp;cHash=38eee382dd3fc2edb80b67944d477100</loc>
            <lastmod>2019-10-07T13:57:04-07:00</lastmod>
        </sitemap>

</sitemapindex>

So far so good.到目前为止,一切都很好。 But the link in there should take me to the actual sitemap, but instead takes me straight to the root page without any redirection.但是那里的链接应该将我带到实际的站点地图,而是将我直接带到根页面而无需任何重定向。 This happens on 2 different sites.这发生在 2 个不同的站点上。 I didn't configure anything special, just enabled the seo system extension and included the static template as described here .我没有配置任何特殊的东西,只是启用了 seo 系统扩展并包含了 static 模板,如此所述。

When I submitted the sitemap to Google's Search Console, it said "could not fetch", but the next day the status was "Success" and it discovered URLS.当我将站点地图提交到 Google 的 Search Console 时,它说“无法获取”,但第二天状态是“成功”并且它发现了 URL。 I guess Google crawled the root page and found the links on it.我猜谷歌爬取了根页面并找到了上面的链接。

How do I get the sitemap working or is there a bug somewhere?如何使站点地图正常工作或某处是否存在错误?

The index.html part in the path to the pages sitemap looks weird to me.页面站点地图路径中的index.html部分对我来说看起来很奇怪。 Can you please try to open the loc url without the index.html part?您能否尝试在没有 index.html 部分的情况下打开 loc index.html部分? If you can see the sitemap then, we have to take a look where this index.html is coming from.如果你能看到站点地图,我们必须看看这个index.html是从哪里来的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM