Hello,
Thank you for getting in touch with us and apologies for the inconvenience caused.
Could you please check the following:
1. Is the sitemap working fine in your browser? You can check that by going domain(.)com/sitemap_index.xml
If the sitemap is working fine, you can try validating it on this link: https://www.xml-sitemaps.com/validate-xml-sitemap.html
If the validation works, please move to the second point.
2. Have you verified the correct version of your website on Google? Please check if you have verified the www (or non-www) and https (or http) version of your website. If there is a mismatch, please fix that.
3. Finally, make sure you have cleared the cache and excluded Google bot from seeing a cached version of your sitemap.
If you have followed these and you are able to view your sitemap without any problem, then Rank Math is outputting your sitemap correctly and the error must be coming from Google. You can try and use a 3rd party sitemap plugin to confirm. Just make sure you have disabled the Sitemap module of Rank Math in WordPress Dashboard > Rank Math > Dashboard
when using a 3rd party sitemap plugin.
If the other plugin works, please do let us know.
You can also make use of the support link below for any Sitemap related concerns as reference:
https://rankmath.com/kb/configure-sitemaps/#:~:text=If%20you%20want%20to%20change,that%20you%20can%20enable%20it.
Looking forward to assisting you.
Cheers,
Validator says that sitemap is not valid
Hello,
I am getting a 404 error while trying to access your sitemap index, you may have to flush permalinks. Simply head over to your WordPress admin area and go to Settings > Permalinks and hit the “Save Changes”
Sitemap error Screenshot:
https://prnt.sc/12gnr3x
Looking forward to helping you. Thank you.
Hello,
You’re welcome.
I checked your sitemaps and now the sitemaps are loading properly. I also tested the sitemaps using the sitemap validator tool and there were no issues found.
Please have a look at these screenshots for a quick reference:
https://i.rankmath.com/xFYvrZ
https://i.rankmath.com/OTbUAC
I suggest you also exclude the sitemaps from your caching plugin. You may refer to this tutorial guide for more details:
https://rankmath.com/kb/exclude-sitemaps-from-caching/
Hope this helps and please let us know if you need any further assistance, it would be our pleasure to assist 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.