{"id":1250,"date":"2022-12-12T19:08:47","date_gmt":"2022-12-12T19:08:47","guid":{"rendered":"https:\/\/editjournal.redakt.eu\/faxmodem\/?p=1250"},"modified":"2022-12-12T19:10:14","modified_gmt":"2022-12-12T19:10:14","slug":"google-webmaster-search-console-couldnt-fetch-sitemap","status":"publish","type":"post","link":"https:\/\/editjournal.redakt.eu\/faxmodem\/blog\/seo-webmaster\/google-webmaster-search-console-couldnt-fetch-sitemap\/","title":{"rendered":"Google Webmaster \/ Search Console &#8220;Couldn&#8217;t fetch&#8221; Sitemap?"},"content":{"rendered":"<p>I have a sitemap generated by a built-in Opencart extension. I submitted it to Google, but it fails to read it, saying:<\/p>\n<blockquote>\n<p>Couldn't fetch<br \/>\nSitemap could not be read<\/p>\n<\/blockquote>\n<p>Needless to say, the URL is public and works just fine.<\/p>\n<p>The common advice is to try again and\/or wait:<\/p>\n<blockquote>\n<p><a href=\"https:\/\/support.google.com\/webmasters\/thread\/3105916\/sitemap-could-not-be-read-in-new-gsc?hl=en\">Pending is the <strong>real<\/strong> status!<\/a><\/p>\n<\/blockquote>\n<p>Waiting and hoping for the best didn't solve it for me. Submitting a reindex request didn't help either.  Instead, the solution in my case was to create a rewrite rule pointing <code>\/sitemap.xml<\/code> to my dynamically-generated Opencart sitemap, and feeding <code>\/sitemap.xml<\/code> into the Google Search Console, which has worked immediately.<\/p>\n<p>Here's the Nginx rewrite rule that I used:<\/p>\n<pre><code>rewrite ^\/sitemap.xml$ \/index.php?route=extension\/feed\/google_sitemap break;<\/code><\/pre>\n<p>Of course, yours does not have to point to the same exact URL I have, point it to your script that generates the sitemap. Just make sure it opens under <code>\/sitemap.xml<\/code>.<\/p>\n<p>The benefit of doing it like this is you can change the backend script as many times as you want without having to resubmit to Google - as long as you keep updating the rewrite rule.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a sitemap generated by a built-in Opencart extension. I submitted it to Google, but it fails to read it, saying: Couldn&#8217;t fetch Sitemap could not be read Needless to say, the URL is public and works just fine. The common advice is to try again and\/or wait: Pending is the real status! Waiting&hellip; <a class=\"more-link\" href=\"https:\/\/editjournal.redakt.eu\/faxmodem\/blog\/seo-webmaster\/google-webmaster-search-console-couldnt-fetch-sitemap\/\">Continue reading <span class=\"screen-reader-text\">Google Webmaster \/ Search Console &#8220;Couldn&#8217;t fetch&#8221; Sitemap?<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[994],"tags":[1009,1006,1000,1003,997],"class_list":["post-1250","post","type-post","status-publish","format-standard","hentry","category-seo-webmaster","tag-google","tag-google-search-console","tag-seo","tag-sitemap","tag-webmaster-tools","entry"],"_links":{"self":[{"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/posts\/1250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/comments?post=1250"}],"version-history":[{"count":2,"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/posts\/1250\/revisions"}],"predecessor-version":[{"id":1260,"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/posts\/1250\/revisions\/1260"}],"wp:attachment":[{"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/media?parent=1250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/categories?post=1250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/tags?post=1250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}