Error – Invalid sitemap URL detected; syntax not understood

Allow: sitemap: [Optional, zero or more per file] The location of a sitemap for this site. The sitemap URL must be a fully-qualified URL; Google doesn’t assume or check http/https/www.non-www alternates. Sitemaps are a good way to indicate which content Google should crawl, as opposed to which content it can or cannot crawl.

Before

User-agent: *
Allow: /wp-content/uploads/
Disallow: /wp-content/plugins/
Disallow: /wp-admin/
Disallow: /refer/
Disallow: /tag/
Disallow: /feed/
Disallow: /author/admin/

Sitemap: https://josuamarcelc.com/sitemap_index.xml
Sitemap: https://josuamarcelc.com/image_sitemap_20221010.xml
Sitemap: https://josuamarcelc.com/page-sitemap.xml
Sitemap: https://josuamarcelc.com/post-sitemap.xml
Sitemap: https://josuamarcelc.com/web-story-sitemap.xml

How to fix this invalid sitemap is only add the Allow: before the Sitemap: xxx.com/sitemap.xml

Update the robots.txt and clear the domain cache then request recrawl on Setting -> robots.txt -> OPEN REPORT

(already tested and it’s good)

User-agent: *
Allow: /wp-content/uploads/
Disallow: /wp-content/plugins/
Disallow: /wp-admin/
Disallow: /refer/
Disallow: /tag/
Disallow: /feed/
Disallow: /author/admin/

Allow: Sitemap: https://josuamarcelc.com/sitemap_index.xml
Allow: Sitemap: https://josuamarcelc.com/image_sitemap_20221010.xml
Allow: Sitemap: https://josuamarcelc.com/page-sitemap.xml
Allow: Sitemap: https://josuamarcelc.com/post-sitemap.xml
Allow: Sitemap: https://josuamarcelc.com/web-story-sitemap.xml

How To Fix Robots.txt Reference: https://support.google.com/webmasters/thread/246133059/error-invalid-sitemap-url-detected-syntax-not-understood-line-3?hl=en

Exit mobile version