Hello,
I’m sorry to hear that you’re experiencing a recurring 404 error with your sitemap. To address this issue, you can try the following steps:
-
Flush the Sitemap Cache: After updating your sitemap, navigate to Rank Math SEO → Sitemap Settings and increase the value of Links Per Sitemap by one. Save the changes by clicking on the Save Changes button at the bottom of the page.
-
Flush Permalinks: Go to Settings → Permalinks in your WordPress admin area and click on the Save Changes button, even if you haven’t made any changes. This action will flush the permalinks setting and may resolve the 404 error temporarily.
If the issue persists and the sitemap keeps reverting to a 404 error, please reply to this ticket, and a human agent from our support team will assist you further.
Thank you for bringing this concern to our attention. We’re here to help you resolve this issue promptly.
Best regards.
Sources:
Why the Sitemap_Index.xml is Throwing a 404 Error » Rank Math
How to Configure Sitemaps in Rank Math – Best Settings and Tips
Rank Math Sitemap Issues and Their Fixes » Rank Math
Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
Using Video Sitemaps in Rank Math
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
It looks like your sitemap is heavily cached. In this case, please try to follow the steps below and see if that works for you:
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. If the above steps don’t seem to work, kindly apply the following filter to your site.
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Here’s how you can add filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Let us know how it goes. 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.