-
Hi, I’m looking the way how can limit the automatic creation of sitemaps in the sitemap index.
So, actually I have sitemap1.xml with 91 urls, sitempap2.xml with 114, sitemap3.xml with 14 urls. and I’m looking to have only one sitemap1.xml with 500 urls. Why Rank Math create many sitemaps with only five urls. ?
https://tinyurl.com/2k5bklo9
-
Hello,
Thank you for contacting Rank Math.
You can set the links per sitemap to 500 in the sitemap settings and save the settings.
https://rankmath.com/kb/configure-sitemaps/#links-per-sitemapHope this helps.
Thank you.
Hello and thanks for your response. I know about this settings but looks like is not working properly because is not generating one sitemap with 200 URLs and after start generating the next one. Instead I have 7 sitemaps with 20,99, 35 etc. URLs. So my issue is – how to create only one sitemap with 200 instead 7 smaller? Thanks.
Hello,
It looks like the sitemaps are cached.
Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
https://rankmath.com/kb/exclude-sitemaps-from-caching/Once done, clear your website cache and check the sitemap.
If the issue persists, please share the sitemap URL with us so we can check.
We look forward to helping you.
Hello, thanks for your suggestion. Actually we are not using any caching system or plugin. We have multilingual website and using WPML plugin. WPML may have some caching system but I’m not sure exactly. I share with you my index.xml files for some languages and you can see how only small numbers of URLs are been generated in multiple sitemaps. Please, let me know if you have another idea how to be able to create les sitemaps with more URLs inside! Thanks
https://www.icompario.com/en-gb/sitemap_index.xml
https://www.icompario.com/nl-be/sitemap_index.xml
https://www.icompario.com/nl-nl/sitemap_index.xml
https://www.icompario.com/en-au/sitemap_index.xml
https://www.icompario.com/en-ie/sitemap_index.xmlHello,
Please add this filter code into your theme’s functions.php file:
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');After doing so, please follow this video guide to flush your sitemaps. You may try setting it up to 501 to flush the sitemap.
Let us know how that goes. Looking forward to helping you.
Hello,
I’m tried what you suggest me in our staging but no changes been achieved. The sitemap are the same. Can this been affected by WPML plugin? And today I been received Error message with some 404 for some sitemaps URLs. Any reason to get 404 for the sitemaps?
Warning
2 more sitemap errors
The following sitemaps could not be accessed:
https://www.icompario.com/ms-my/page-sitemap5.xml
https://www.icompario.com/en-us/page-sitemap6.xml
https://www.icompario.com/en-us/page-sitemap5.xml
https://www.icompario.com/en-us/page-sitemap2.xml
https://www.icompario.com/en-sg/page-sitemap6.xml
https://www.icompario.com/en-my/page-sitemap6.xml
https://www.icompario.com/en-ie/page-sitemap6.xml
https://www.icompario.com/en-ie/page-sitemap4.xml
https://www.icompario.com/en-au/page-sitemap6.xml
https://www.icompario.com/en-au/page-sitemap3.xmlHello,
We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.
It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
I just need our DEV team to create user for you in our staging website and will update you with this information later. Thanks.Hello,
Sure, let us know how this goes.
Meanwhile, please don’t hesitate to contact us anytime if you have other questions to assist you further.
Looking forward to helping you.
Thank you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.
The ticket ‘Manage the number of sitemaps in the Sitemap index’ is closed to new replies.