-
Hello,
i am facing an issue regarding sitemap, i am using rank math seo for long time know and i liked it so much. but i faced few issue which i fixed by the help of you thanks for that.
Now i am stuck in sitemap, google is unable to fetch the sitemap, i am using wordfence plugin and rank math seo reason why i shared this is you may think that wordfence is blocking google bots but when i create manual sitemap google fetch it successfully but google is not fetching the sitemap created by rank math seo.
at first sitemap was redirecting to 404 page then i fixed that, but the the sitemap issue is still there.
-
Hello,
Thank you for contacting the support and we regret the inconvenience caused.
I checked and your sitemaps are loading properly. However, upon testing the variations of your sitemaps with https://httpstatus.io/, I found that all the variations are returning 200 status. You can have a look at the screenshot in the sensitive data section of this ticket.
Except for the preferred variation (which should return only a 200 status), all the non-preferred variations of the website should redirect to the preferred variation and return a 301 and 200 status.
Please follow the steps in this link:
https://rankmath.com/kb/couldnt-fetch-error-google-search-console/#num-5-check-for-the-correct-version-of-the-sitemap and redirect to the correct variation.You can also get in touch with your web host regarding this.
Once done, please follow the below steps and see if that helps:
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp2. Clear your website’s cache and remove all the sitemaps from your Google Search Console account, and then submit only the main sitemap:
/sitemap_index.xml.Further, give Google some time to crawl your website again and see if the issue gets fixed.
Hope this helps.
Thank you.
how to remove sitemap from cache i am using nitropack plugin.
Hello,
You can follow this guide to exclude URLs from NitroPack: https://support.nitropack.io/hc/en-us/articles/1500002526722-Excluded-URLs
Please exclude this rule in Nitropack:
*sitemap*This should exclude all the sitemaps at once.
Hope this helps.
Thank you.
update: disabled the rank math seo plugin and install another plugin for sitemap and it is working please see below in screen shot.
flushed sitemap.
exclude the rule using *sitemap*
purge the cache.
submit the sitemap in bing which worked fine.
but google sitemap is not workingall the screenshots are attached.
https://ibb.co/XS2VJL6
https://ibb.co/6v6X8rm
https://ibb.co/PtXZqFm
https://ibb.co/jD0NDm6
https://ibb.co/72QqG83
https://ibb.co/BPq0Yg1Hello,
It seems like you submitted and were checking the status on Google Search Console the same day (June 3rd).
Please note that Google would see the changes only once it crawls the website again.
You can enable Rank Math’s sitemaps again and submit them to your Google Search Console account: https://rankmath.com/kb/submit-sitemap-to-google/
Once done, clear the website’s cache and wait for Google to crawl the sitemaps again and see if that fixes the issue.
Let us know how that goes.
still the same issue.
submited on June 6 and today is 9th june.
still couldn’t fetch error.Hello,
I checked the sitemap URLs with https://httpstatus.io/, and all variations of the sitemap are returning 200 status.
Please follow the guide shared by my colleague above and redirect to a single variation.
Once done, clear your website cache and resubmit the sitemap in the Search Console.
Looking forward to helping you.
in this link which your collogue sent me in the ticket nothing there is no guide on how we can redirect it to 301. sorry if i didnot get it. but nothing there in the article which was mentioned using this link
https://rankmath.com/kb/couldnt-fetch-error-google-search-console/#num-5-check-for-the-correct-version-of-the-sitemap1.all the screen shots and details which is mentioned in the article is applied including link per site map = 200
2.sitemap excluded from cache.
3.flushed the sitemap
4.removed and again resubmitted in google console.now tell me as you said that it is redirecting to 200 how to fix this issue.
you can send me correct url regarding this.
Hello,
If the final URL is with www, you can follow this guide:
https://www.hostinger.com/tutorials/cpanel/how-to-redirect-non-www-urls-to-wwwIf the final URL is without www, please follow this guide:
https://www.balbooa.com/knowledgebase/33-documentation-joomla-seo/196-301-redirect-from-www-to-non-wwwYou can also get in touch with your web host and ask them to add the rewrite rules.
We recommend taking a backup of your .htaccess file before adding new rules.
Looking forward to helping you.
hello ,
added this code in my .htaccess file
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]but my site went down when i checked in getmatrix it showed too many redirects.
now i am unable to fix this 🙁
fed up from this thing.
can you help me in this please.
also i want to share the same sitemap is working perfectly in bing.
I was using nginx but i also disabled it for cpanel but still the same issue.
Hello,
Please share your FTP login in the sensitive Data section so we can attempt to apply the configuration from the guide.
Looking forward to helping you on this one.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
can you please check again i have updated the sensitive data.
Hello,
Have you tried all methods in the article we shared previously? Including the following one: https://rankmath.com/kb/couldnt-fetch-error-google-search-console/#num-6-rename-the-sitemap-file
Please try that method if all the others don’t seem to currently work.
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 ‘Google couldn’t fetch sitemap’ is closed to new replies.