-
Hi,
After a migration/clone 2 months ago, GSC cant read my sitemap : I have the “couldnt fetch” message with couldnt read
I tested the sitemap validator, the flutch method , all is ok
But when i tested after http status, your script www to non-www. My sitemap with www is a white page, and the normal https://mydomain/sitemap_index.xml is OK
-
Hello,
Thank you for contacting Rank Math support, and sorry for any inconvenience that might have been caused due to that.
I checked your sitemap page and is loading just fine, however, all of your 4 sitemap URL variations don’t redirect to a final variation as you can see in my screenshot below:
Please follow this guide and redirect to a final variation:
https://rankmath.com/kb/couldnt-fetch-error-google-search-console/#num-5-4-redirect-all-three-other-versions-to-your-preferred-variationOnce done, clear your website cache and try submitting your sitemap to your Google Search Console again. See if this resolves the issue.
We are looking forward to hearing an update from you. Thank you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Update with Cloudflare
But GSC cant read the sitemap
Hello,
Can you please follow these steps?
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
https://rankmath.com/kb/exclude-sitemaps-from-caching/3. Clear your website cache, purge the cache from Cloudflare and resubmit the sitemap in the Search Console.
After adding the sitemap, wait for Google to crawl the sitemap.
Let us know how it goes.
We are here to assist you.
I tried everything, try everything, nothing works.
I have several sites with your plugin, 3 with the “couldnt fetch” problem, 3 whose sitemap does not update.
Given the number of messages in your support about sitemap problems, it’s time to take care of it seriously, rather than your AI modules which interest practically no one
Hello,
We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress login in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.
It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
The couldn’t fetch error, is in most cases simply due to a bug in the Search Console.
I checked the screenshots, and you have submitted the sub-sitemaps in the Search Console, please only add the sitemap_index.xml in the Search Console, Google will automatically crawl the inner sitemaps.
However, I checked the URLs with https://httpstatus.io/, and two variations of the sitemap URLs are returning a 200 status. Only one URL should show a 200 status and the rest of the versions should redirect to it.
Please follow the guide shared by my colleague above and make sure the URLs are redirected to the final version.
On both the websites, I have added this filter to exclude the sitemaps from caching:
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Please clear your website cache and resubmit the main sitemap in the Search Console.
Hope this helps.
We look forward to helping you.
Hi,
I tried many times your 2 scripts at the end of htaccess without any result :
“Add the following code snippet and click on Save Changes.
RewriteEngine On
RewriteCond %{HTTP_HOST} http://www.example.com
RewriteRule (.*) https://example.com/$1 [R=301,L]If the issue still persists then try the following code snippet instead:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.website.com [NC]
RewriteRule ^(.*)$ https://website.com/$1 [L,R=301] “Hello,
If you have exhausted all options in our KB about this issue, please make sure that you try the last option here: https://rankmath.com/kb/couldnt-fetch-error-google-search-console/#num-6-rename-the-sitemap-file
Don’t hesitate to get in touch if you have any other questions.
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 ‘Sitemap Couldn’t fetch’ is closed to new replies.