TYPO3 9.5.x创建指向xml网站地图的链接

问题描述

我正在使用此代码在多域网站(.de和.com)上创建XML网站地图

plugin.tx_SEO {
    config {
        xmlSitemap {
            sitemaps {
                pages {
                    config {
                        excludedDoktypes = 137,138
                        additionalWhere = AND (no_index = 0 OR no_follow = 0)
                    }
                }
            }
        }
    }
}

结果是真实站点地图的XML文件。这有效吗?

... / sitemap.xml:

enter image description here

当我单击链接时的真实站点地图(... / sitemap.xml?sitemap = pages&cHash = d65c2c32882eb9d88ac8d6050159a9c7)

3

解决方法

是的,允许的:https://www.sitemaps.org/de/protocol.html#index

简而言之:对于大型网站,您应该将站点地图分成多个文件。如果您拥有不同类型的内容并且需要分别生成站点地图(例如新闻记录和页面),这也是一种可能性