svanschu / SchuWeb-Sitemap

SchuWeb Sitemap is a sitemap generator for Joomla CMS
GNU General Public License v3.0
13 stars 9 forks source link

Split sitemap when website has more than 50,000 pages #56

Open sshcli opened 4 years ago

sshcli commented 4 years ago

Expected behavior Add option in backed to split sitemap when website has more than 50,000 pages

Actual result I'm getting this error in Google Search Console: Too many URLs Your Sitemap contains too many URLs. Please create multiple Sitemaps with up to 50000 URLs each and submit all Sitemaps.

errorsitemap

System information Joomla version: 3.9.20 SchuWeb-Sitemap version: 3.1.0 PHP version: 7.3.20 Database version: MySQL 5.7.31

sshcli commented 3 years ago

The split can be done by year

For example: Sitemap 1 = Topics created in 2018 Sitemap 2 = Topics created in 2019 Sitemap 3 = Topics created in 2020

svanschu commented 9 months ago

Sitemap size limits: All formats limit a single sitemap to 50MB (uncompressed) or 50,000 URLs. If you have a larger file or more URLs, you must break your sitemap into multiple sitemaps. You can optionally create a sitemap index file and submit that single index file to Google. You can submit multiple sitemaps and sitemap index files to Google. This may be useful if you want to track the search performance of each individual sitemap in Search Console.

https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap#general-guidelines