Multiple Sitemap XMLs

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 years ago
Hello,

I would like to see multiple dynamic sitemap.xml files being generated. Currently all products, categories, topics etc are put into the one yourstore.com/sitemap.xml 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
yourstore.com/sitemap-products1.xml (products 0-1000)
yourstore.com/sitemap-products2.xml (products 1001-2000)
.
..
...
yourstore.com/sitemap-category1.xml (categories 1001-2000)

etc etc

Cheers,
Craig.
9 years ago
Hi Craig,

Thanks a lot for suggestion. Please  vote for this work item here
7 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?

Thanks.
7 years ago
We have implemented this feature. You can see changes in this commit.
4 years ago
you can use this plugin https://www.nopcommerce.com/p/5853/sitemap-xml-plugin.aspx
4 years ago
you can use this plugin https://www.nopcommerce.com/p/5853/sitemap-xml-plugin.aspx
3 years ago
Solved:
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.
3 years 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.
3 years ago
Hi,
I am already aware that you did a good implementation in 2017. Our site, stokarti.com  (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;
https://stokarti.com/en/sitemap.xml
https://stokarti.com/en/sitemap-1.xml
etc.
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.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.