Hello,
We’re sorry to hear that you’re experiencing issues with your sitemap. To troubleshoot this, you can start by checking if the sitemap is accessible using a tool like httpstatus.io. This will help identify any issues preventing your sitemap from being accessed by search engine bots.
If the sitemap is accessible, you may need to ensure that it is correctly configured and located in the root folder of your WordPress installation. Additionally, you should verify that your posts are set to index in the Rank Math SEO settings.
If you’re using Rank Math for your sitemap, you can enable the Sitemap module in the Rank Math SEO Dashboard and verify if the settings are configured correctly in the Sitemap Settings.
If you’re still facing issues after these checks, please let us know, and we’ll be happy to assist further.
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
Why the Sitemap_Index.xml is Throwing a 404 Error » Rank Math
Indexed, Not Submitted in Sitemap – Google Search Console » Rank Math
Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
Analyzing Your Site’s SEO with Rank Math’s SEO Analysis Tool
Hello,
For initial troubleshooting, please follow the steps in this link to flush your sitemap cache:
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp
2. 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/
3. Disable the transient cache for the sitemap by applying this filter. This will make sure that your XML sitemap always reflects the latest changes on your site:
/**
* Filter if XML sitemap transient cache is enabled.
*
* @param boolean $unsigned Enable cache or not, defaults to true
*/
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
If you’re not sure how to add this code, you can follow this guide:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Let us know how this goes.
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.