lgraubner/sitemap-generator-cli

Split after 50000 entries (for Google)

JLNNN opened this issue · 5 comments

JLNNN commented

Google allows only up to 50000 entries each sitemap. Is it possible to open another file then? :)
google-sitemap

Have a nice day!

Seems necessary. I will probably have to reintroduce a filepath argument as currently all output ist piped to one file.
Any wishes how to name the sitemap part files? Something like sitemap_1.xml etc.?

JLNNN commented

I guess that will do 👍

Thought it was a 10 megabyte limit not by line.. hmm..

Hah it's both.. how annoying:

'There are also limits on size. The sitemaps.xml file cannot exceed 10 megabytes in size, with no more than 50,000 URLs per file. But you can have multiple sitemaps in a sitemap index file, too. If you have millions of URLs, you can see where this starts to get hairy fast.'

Implemented in v6. Be aware that this is a breaking change, read more about it on the release page.