-
since i activated rankmath, my website sitemap is showing htmlo error in google search console. i had flushed sitemap catche after that Excluded the Sitemap files of the Rank Math plugin and updated sitemap in google search console still it is showing html error. can you please help me?
-
Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
I can check that your sitemap is loading and validating fine. Please remove all previously submitted sitemaps from your GSC account and resubmit your main sitemap: https://littleoneshealth.com/sitemap_index.xml.
Once done, please wait for Google to crawl it again and the issue should be resolved after that.
Let us know how that goes. Looking forward to helping you.
sitemap was crawled by google still it is showing sitemap is html
Hello,
Please add this filter to your website:
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Here is a guide you can follow to add the filter:
https://rankmath.com/kb/wordpress-hooks-actions-filters/Once done, clear your website cache and check again.
Looking forward to helping you.
i have added filter to my website and cleared catche and again submitted sitemap in search console. still it is showing sitemap is html error.
Hello,
I’ve checked your sitemaps, but it seems they are working fine. Your robots.txt is already configured as well.
However, the WWW version of your sitemap is not yet redirected to the non-WWW version. Please ensure that only 1 version of the sitemap is working (200 Ok status), and the rest are redirecting to it. You can also use this tool to check.
You can follow the steps in this link to redirect your non-www version of your site:
https://rankmath.com/kb/how-to-redirect-www-urls-to-non-www/Once done, remove all the sitemaps submitted in your Google Search Console and resubmit your main sitemap. Then give Google some time to recrawl your sitemaps.
I hope that helps.
Thank you.
I have used tool but still problem persist. What to do?
Hello,
Your sitemap should return a 200 status code for Google to read your sitemap, however, it seems LiteSpeed is causing your sitemap to return 403 instead as you can see in my screenshot in the Sensitive Data section.
Kindly follow this guide to exclude your sitemap from plugin cache: https://rankmath.com/kb/exclude-sitemaps-from-caching/#litespeed-cache
If the issue persists, I suggest checking this one with your hosting provider.
Looking forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further? It does not showing 403 and i am not using litespeed cache. what showld be the problem. there is amp domain mismatch error also
Thank you.
Hello,
Unfortunately, the sitemap is still returning a 403 error. You may check your sitemap URL here: https://httpstatus.io/
Kindly check this with your hosting provider as they are in the best position to assist you with these types of errors.
Looking forward to hearing an update from you.
i have contacted hosting provider, they told no problem from our side. how to solve the problem of sitemap html now?
Hello,
When visiting your site as Googlebot, it is getting redirected to https://iofan.com/. Please check the screenshot in the sensitive data section.
It seems like your site has been hacked. Please use a security plugin like WordFence to scan your site and remove malware and suspicious codes.
Hope this helps. Let us know if you need any other assistance.
i have removed malware. and updated google search console sitemap. still showing error and i am waiting for google to crawl. can you please check error.
Hello,
Thank you for the update.
Your sitemap is no longer giving the 403 error. Please remove your sitemap_index.xml from Google Search Console and resubmit it. You can watch this video for how to remove the sitemap from GSC: https://youtu.be/4DwVO7ZP7yY
Hope that helps. Please let us know if you have questions.
Deleted and updated new sitemap but still showing sitemap is HTML error.
Hello,
Your site is still redirecting to a spam website when visiting it as Googlebot:
Please get in touch with your host and ask them to run a security scan on your site to fix the issue. You can also follow this guide: https://www.wpbeginner.com/beginners-guide/beginners-step-step-guide-fixing-hacked-wordpress-site/
Let us know how that 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.
The ticket ‘my sitemap is html error’ is closed to new replies.