Hello,
I apologize for the issues you are facing with your sitemap. It sounds like you’ve already taken several steps to troubleshoot the problem, which is great. Here are a few additional suggestions that might help resolve the 404 errors for your XML sitemap and the fetching issues for your HTML sitemap:
For the XML Sitemap:
-
Flush Permalinks: Since you mentioned saving permalinks, ensure you do this again by navigating to Settings → Permalinks in your WordPress dashboard and clicking Save Changes without making any changes. This can often resolve 404 errors.

-
Check for Plugin Conflicts: Use the Health Check plugin to see if there are any conflicts with other plugins that might be affecting the sitemap.
-
Check Robots.txt: Ensure that your robots.txt
file is not blocking access to your sitemap. You can check this in Rank Math SEO → General Settings → robots.txt.
-
Sitemap Validation: Validate your sitemap using the Validate XML Sitemap tool to ensure it is correctly configured.

For the HTML Sitemap:
-
Check Server Response: Use a tool like httpstatus.io to check the status code of your HTML sitemap. Ensure it returns a 200 status code.
-
Caching Issues: Since you mentioned excluding it from cache, double-check that there are no caching rules at the CDN level that might be affecting access to the HTML sitemap.
-
User-Agent Blocking: Sometimes, certain user agents (like Googlebot) may be blocked by security plugins or server settings. Ensure that your server or any security plugins are not blocking these user agents.
If these steps do not resolve the issues, please reply to this ticket with any error messages you receive or additional details about your setup, and a human agent from the Rank Math Support team will assist you further. Thank you for your patience!
Sources:
Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
Rank Math Sitemap Issues and Their Fixes » Rank Math
This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.
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.