简体   繁体   English

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

[英]TYPO3 9.5.x creates a link to xml sitemap

I'm using this code to create a xml sitemap on a multidomain website (.de and .com):我正在使用此代码在多域网站(.de 和 .com)上创建 xml 站点地图:

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

The result is a XML-file to the real sitemap.结果是真实站点地图的 XML 文件。 Is this valid?这是有效的吗?

.../sitemap.xml: .../sitemap.xml:

在此处输入图片说明

The real sitemap when I click the link (.../sitemap.xml?sitemap=pages&cHash=d65c2c32882eb9d88ac8d6050159a9c7)单击链接时的真实站点地图 (.../sitemap.xml?sitemap=pages&cHash=d65c2c32882eb9d88ac8d6050159a9c7)

3

Yes, that's allowed: https://www.sitemaps.org/de/protocol.html#index是的,这是允许的: https : //www.sitemaps.org/de/protocol.html#index

In short: for larger websites, you should split your sitemap into multiple files.简而言之:对于较大的网站,您应该将站点地图拆分为多个文件。 It's also a possibility if you have different kinds of content and the sitemaps need to be generated separately (eg news records and pages)如果您有不同类型的内容并且需要单独生成站点地图(例如新闻记录和页面),这也是一种可能性

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

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