Sitemap can be read, but has errors

#528986
  • Resolved Kai Weber
    Rank Math free

    Google Search Console throws out: Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead.

    I’ve checked other tickets on here, but none of the possible solutions helped.

    Thank you in advance for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    I’ve checked your sitemap, but it seems to be working fine.

    For troubleshooting, please follow the steps below:

    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. Remove all your sitemaps again from your Google Search Console and resubmit only the primary one (sitemap_index.xml)

    Let us know how this goes.

    Thank you.

    Hello,

    I’ve deleted the sitemap off of Search Console, the problem still remains.
    I’ve also flushed the sitemap cache.
    I don’t think I have a caching plugin and Cloudflare doesn’t cache sitemaps by default.
    What else could it be and what are the steps to fixing the issue?

    Best wishes

    Hello,

    I also checked your sitemap but didn’t find any issues there. I’ve attached a screenshot in the sensitive data section for your reference.

    In this case, can you please try to add the following filter on 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/

    Once done, please try to resubmit your sitemap once again in the Search Console.

    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.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘Sitemap can be read, but has errors’ is closed to new replies.