Multiple Sitemap XMLs

5 years ago

I would like to see multiple dynamic sitemap.xml files being generated. Currently all products, categories, topics etc are put into the one location. Although sitemap files can contain up to 50,000 urls, some people have more than 50,000 urls, but in most cases it better to provide more granularity. By creating multiple sitemaps, google webmaster will provide a better breakdown of sitemaps submitted and you can analyse any poor performing urls (duplicate content etc). Also it's much less load on the server to output smaller files.

Example, split products into separate dynamic files with a limit to the number of urls in the file (products 0-1000) (products 1001-2000)
... (categories 1001-2000)

etc etc

5 years ago
Hi Craig,

Thanks a lot for suggestion. Please  vote for this work item here
3 years ago
Has this ever been implemented? We are using nop 37 but we have reached the 50,000 url limit as well. Anybody know how we can implement a sitemap index file within nopcommerce to split the file into multiple index files?

3 years ago
We have implemented this feature. You can see changes in this commit.
9 months ago
you can use this plugin
9 months ago
you can use this plugin
2 months ago
I read the forum messages and did not understand anything, so I checked the updated code and here is the solution.
With the mentioned update #1713 if the sitemap.xml increase the row of 50.000, additional sitemaps are created automatically in the address of ../en/sitemap-1.xml,  ../en/sitemap-2.xml, and so on.
Just add the new sitemaps to google search console and the problem will be solved.
1 month ago
Hi, this division is working well but the size of the sitemap.xml (19,6mb) exceed the limit of 10mb.  if you have 50.000 url in it.
Therefore Google search console will give error.

RomanovM wrote:
We have implemented this feature. You can see changes in this commit.
1 month ago
I am already aware that you did a good implementation in 2017. Our site,  (nopcommerce v4.2) consist of this implementation.
On the other hand, the implementation seems to have a size limit for the number of URL (50.000)
Which result our xml maps to diveded  as;
Each sitemap is nearly 20mb, and the error that we have in the google search console is "Your Sitemap contains too many URLs. Please create multiple Sitemaps with up to 50000 URLs each and submit all Sitemaps."
I believe that this issue arise because of the sitemap mb size.
Any help will be appritated.