Changing Simple XML Sitemap Pagination

Created on 11 March 2025, 4 months ago

Hi everyone,

I’m using Drupal 10 with the Simple XML Sitemap module, and I’m running into an issue with how paginated sitemaps are generated.

Current Issue:
Right now, the sitemap is being generated with paginated URLs like:

sitemap.xml?page=1
sitemap.xml?page=2

Google Search Console is flagging this as a "Nested Indexing Error" because Google expects each sitemap entry to reference a static sitemap file, such as:

sitemap-1.xml
sitemap-2.xml

There doesn’t seem to be a built-in option in Simple XML Sitemap to change this behavior.

I’m looking for a way to modify the sitemap output so that paginated sitemaps use static filenames instead of query parameters.

Thanks in advance for your help!

💬 Support request
Status

Active

Version

4.2

Component

Code

Created by

🇮🇳India sparsh.sinha Bangalore, India

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024