XML sitemap is empty

Hello.

I’m trying to use SEO in order to create a XML sitemap of my site, but that sitemap doesn’t show any page.

http://example.org/?type=1533906435

<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>http://example.org/?sitemap=pages&amp;type=1533906435&amp;Hash=86d19fe655189d9dafc81c77d4448f6a
</loc>
<lastmod>
2023-10-04T07:37:56-05:00
</lastmod>
</sitemap>
</sitemapindex>

I installed the extension typo3/cms-seo, configured my sites in “Sites” module, included “XML sitemap” to the template in main page (uid 1) and added the following TypoScript in my template:

plugin.tx_seo {
    config {
        xmlSitemap {
            sitemaps {
                pages {
                    config {
                        # excludedDoktypes = 137, 138
                        # additionalWhere = AND (no_index = 0 OR no_follow = 0)
                        #rootPage = <optionally specify a different root page. (default: rootPageId from site configuration)>
                        rootPage = 1
                        #excludePagesRecursive = <comma-separated list of page IDs>
                    }
                }
            }
        }
    }
}

I don’t know what I’m doing wrong… I would appreciate your help. Thank you.

Did you add an route enhancer to your site configuration? I think it cannot done in the sites module, but in config.yaml directly.

Some thing like this:

routeEnhancers:
  PageTypeSuffix:
    type: PageType
    default: ''
    index: ''
    map:
      sitemap.xml: 1533906435

Cheers Christian