It you submitted your site on google console using example.com
The sitemap sitemap_index.xml won’t work . To make it work use https://example.com/sitemap_index.xml or https://www.example.com/sitemap_index.xml
Hello,
Thank you for getting in touch with us.
Could you please share your site URL in the sensitive section so we can check from our end. You also need to 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. Once done please resubmit your sitemap in your GSC.
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.
Thank you.
Thank you for your reply, I think is working correctly now 🙂 I tried again to insert the sitemap_index.xml and now is valid and when I checked the validation of my sitemaps from the link that you send me it was everything okay so did not have to follow the next steps.
If I need to check or do something important besides this please let me know.
Thank you,
kind regards.
Hello,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.