Sitemap contains urls which are blocked by robots.txt.
-
Hi, I may be being a bit dumb, but I’m not sure what I’ve done wrong, unless I just need to be patient? I can see the sitemap (lovely, thank you) but Google Webmaster Tools states that “Sitemap contains urls which are blocked by robots.txt.” Unfortunately, these are all the pages on my site, it seems!
My robots.txt file says:
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.phpSitemap: https://mysite.com/xmlsitemap.xml
Allow: /rsssitemap.xml
Allow: /htmlsitemap.htmI have unchecked ‘discourage search engines’; I did this yesterday, and created the sitemap today. Do I need to wait 24 hours? Or should I create a ‘real’ robots.txt? And what should I put in it? It’s all a bit like black arts to me!
https://www.ads-software.com/plugins/www-xml-sitemap-generator-org/
- The topic ‘Sitemap contains urls which are blocked by robots.txt.’ is closed to new replies.