-
Hi RankMath Team,
We’re facing an issue with our blog post sitemap. Earlier, each sitemap (under /post-sitemap.xml) used to contain around 500 URLs. Recently, we started getting the following error when opening the sitemap:
“error on line 2 at column 6: XML declaration allowed only at the start of the document.”
We tried the usual fixes like removing whitespace, but the problem persisted. Eventually, we realized the issue was due to sitemap file size limits.
To fix it, we changed the number of URLs per sitemap to 200 — the error was still there. Finally, at 100 URLs per sitemap, the error disappeared.
Now we have 7 paginated blog sitemaps (like /post-sitemap1.xml, /post-sitemap2.xml, etc.), but I noticed some blog URLs are appearing in multiple sitemaps.
Here are my main concerns:
Is there any way to fit all 671 blog URLs into a single post sitemap?
If not, will the presence of duplicate URLs across multiple post sitemaps cause any crawling or indexing issues?
What’s the recommended way to resolve this and ensure proper sitemap structure without duplicate entries?
You must be logged in to reply to this ticket.