RankMath Sitemap is HTML error in Search Console

#95099
  • Resolved Daily PUBG Dose
    Rank Math free

    a few months ago I faced a Sitemap error on my google search console. I tried some ways to fix but it keeps appearing again and again.
    The last time I faced this issue, I opened a ticked here which gave me a solution which was to put some text on my Lightspeed caching tool. as follows to my exclude directory of the LSC
    sitemap_index.xml
    post-sitemap.xml
    page-sitemap.xml
    category-sitemap.xml
    product-sitemap.xml
    /main-sitemap.xsl
    It fixed my problem but today the error has appeared again. What do I do? Is it because of the rank math plugin? should I move to another SEO plugin? or should I change my Lightspeed caching and move to WW3?
    Please give a permanent solution, please.
    I am including all the Screenshot related to this. Please ask if you want anything else…

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

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    This issue usually results from sitemap being cached on your site. I checked your sitemap URLs and they seem to be cached by cloudflare on your site. You should add rules to ensure sitemap URLs are excluded from any form of caching, be it on your site or server.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    I am not a developer, just a beginner, So, can you please be specific what am i suppose to do?
    How to add rules or what i exactly do to solve this problem, please help me.
    Btw just letting you know that, the problem is fixed for now but i don’t think it is a permanent fix, it will appear again.
    Let me explain how i fixed it. I first went to Rankmath Sitemap settings and increased the number of links per sitemap from 200 to 2000. I actually have done it before. then i removed the old sitemap and submitted new. It worked, also after that, i again went to sitemap settings and decreased the number of sitemap settings from 2000 to 200.
    Please give me a permanent solution thanks.

    Hello,

    Yes, your current fix is only temporary. Resaving your permalinks and changing the number of links per sitemap only flushes the current sitemap forcing it to update. This is likely to occur again if the sitemap gets cached.

    Please check the following:

    1. Do you have a caching plugin on your site? If you do, look into the plugin settings and check for an option to exclude URLs or Pages. Add all your sitemap URLs here, save your settings and clear your cache.

    2. Since you have cloudfare enabled, please check these articles to understand how to add rules(tell cloudfare what to cache or not):
    https://support.cloudflare.com/hc/en-us/articles/202775670-How-Do-I-Tell-Cloudflare-What-to-Cache-
    https://support.cloudflare.com/hc/en-us/articles/115003206852-Enabling-Origin-Cache-Control-with-Cloudflare-Page-Rules

    Hope this helps 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 ‘RankMath Sitemap is HTML error in Search Console’ is closed to new replies.