Hello,
We apologize for the issue you are facing with your sitemap. It seems that you are encountering a 404 error when Google tries to access your sitemap. Here are some steps you can take to troubleshoot and resolve this issue:
-
Flush Permalinks: Sometimes, simply flushing the permalinks can resolve 404 errors. Go to Settings → Permalinks in your WordPress dashboard and click Save Changes without making any changes. This action can refresh the permalink structure.

-
Check Sitemap URL: Ensure that your sitemap is located at the correct URL. The standard URL for Rank Math sitemaps is `https://rankmath.com/wp-content/uploads/2024/03/reset-confirmation-dialogue-box.png. Make sure this URL is accessible in your browser.
-
Validate Your Sitemap: Use a sitemap validation tool to check if your sitemap is correctly configured. You can use the Validate XML Sitemap tool to confirm that there are no issues with your sitemap.

-
Check robots.txt: Ensure that your robots.txt
file is not blocking access to your sitemap. You can check this by going to Rank Math SEO → General Settings → robots.txt and ensuring there are no rules preventing Google from accessing your sitemap.
-
Check for Plugin Conflicts: Sometimes, other plugins can interfere with the sitemap functionality. You can use the Health Check plugin to identify any potential conflicts.
-
Clear Cache: If you are using a caching plugin, clear your website cache and try submitting the sitemap again in Google Search Console.
If you have followed these steps and are still experiencing issues, please reply to this ticket with your site URL so that a human agent from our support team can assist you further.
Thank you for raising this concern, and we hope to help you resolve it soon!
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
Buona sera, nella convalida della sitemap risulta questo errore: Tipo di contenuto dell’intestazione http non corretto: “text/html; charset=UTF-8” (previsto: “application/xml”)
Il sito web è https://agenziaborsari.it/
Grazie
Hello,
Thank you for contacting us. We apologize for any inconvenience this issue may have caused.
Please follow the steps below for initial troubleshooting:
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/
If the issue persists then try disabling the transient cache for the sitemap. This will make sure that your XML sitemap always reflects the latest changes on your site. Kindly add this code snippet to 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/.
After you add the code, please clear any cache on your site or server and check your XML sitemap again. If you’re still facing issues with the sitemap, please let us know – we are happy to investigate further.
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.