XML Sitemap

From version 3.0 of EXT:yoast_seo, we ship a extendable sitemap functionality. It is enabled by default and showing all normal pages. But there are some configuration options.

Add doktypes to pages sitemap

The configuration of sitemaps is done within TypoScript. If you want to change the doktypes that are in the pages sitemap, by default only normal pages, you can use the following TypoScript setup.

plugin.tx_yoastseo {
    sitemap {
        config {
            pages {
                additionalWhere = AND doktype IN (1, 137)
            }
        }
    }
}

With this TypoScript you can also add more constraints to which pages you want to show.

How to configure EXT:realurl

You have to do a manual configuration for EXT:realurl. You can add the following code to your configuration array of EXT:realurl:

'fileName' => [
    'index' => [
        'sitemap-pages.xml' => [
            'keyValues' => [
                'type' => 1522073831,
                'tx_yoastseo_sitemap' => 'pages'
            ]
        ],
        'sitemap.xml' => [
            'keyValues' => [
                'type' => 1522073831
            ]
        ]
    ]
]