GSC Sitemap Error

#567680
  • Resolved Anonymous
    Rank Math free

    Hi, In GSC I’ve added the following sitemap:

    xxxx/sitemap_index.xml

    But I’m getting the error message below:

    “Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead.”

    is this something you can help with?

    Thank you
    Lee

Viewing 1 replies (of 1 total)
  • Hello,

    Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.

    Can you please try following the steps below to 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 doesn’t seem to work, kindly apply the following filter code 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/

    After that please remove and re-submit your sitemap on GSC to see if that works for you.

    If the issue persists, please share your sitemap URL with us, so that we can check.

    Let us know how it goes. Looking forward to helping 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 1 replies (of 1 total)

The ticket ‘GSC Sitemap Error’ is closed to new replies.