Hello,
I’m sorry to hear that you’re experiencing issues with your sitemap URL. To resolve the “Invalid sitemap URL” error in Google Search Console, please ensure that you have submitted the correct XML sitemap to Google. The correct sitemap URL should be available on your website at https://example.com/page-sitemap.xml
If you have already submitted the correct URL and are still facing this error, you can check for a plugin conflict using the Health Check plugin. Additionally, if you are running W3 Total Cache along with Rank Math on your website, you can create another user agent group and add the ‘googlebot‘ user agent to it.
If these solutions don’t help resolve the issue, you can include a filter in your theme’s functions.php or rank-math.php file:
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
I hope this helps! If you have any further questions or need additional assistance, please feel free to reach out to our dedicated support team here. We’re available 24/7, 365 days a year.
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
Common robots.txt Issues & How to Fix Them » Rank Math
How to Add Sitemaps to Robots.txt » Rank Math
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
It seems like a new glitch on Google Search Console and many people already faced the same issue. However, it shouldn’t cause any indexing issues on your website. For more details, you can check this thread: https://support.google.com/webmasters/thread/246133059/error-invalid-sitemap-url-detected-syntax-not-understood-line-3?hl=en
Hope that helps and please don’t hesitate to let us know if you have any other questions.
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.