Support » Plugin: Yoast SEO » sitemap probelm

  • Resolved EmanueleT



    i am writing because i have some problems with the sitemap generated by yoast;

    i use youast on many websites and this is the first one im getting this problems.

    the website is this

    and after generation the sitemap, and testing it on webmastertools i get this error:

    We encountered an error while trying to access your Sitemap.

    example , robots.txt is blocking the access.

    The thing is that i dont have a robots txt, i also tried to do it but it didnt work at all, when i tr to see the sitemap from the webmaster tool i see a blank page.

    Any suggestion? can u take a look please.

    thank you in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Emanuele,

    WordPress adds a robots.txt. You can see the one it generates for your site here: and it all looks in order.

    After you deblock the site from search engines and submit the sitemap, Webmastertools still has the cached version of robots.txt. It can take a couple of days but then a site will be indexed.

    As I can see your sitemap at your problem seems to be solved.

    If you agree could you close this topic?

    regards, Mike

    Hi, thank you a lot for helping, i am closing the topic.

    For every body else :
    There is a a small bug in yoast plugin is it’s attachment-sitemap.xml
    It also adds those images which you might had used in some draft posts. And posts are not publicly visible

    attachment-sitemap.xml is used to list attached media files thus this also adds those ( Draft )images in attachment-sitemap.xml

    When Google tries to crawls the attachment-sitemap.xml It finds the (draft) image and when Google tries to access that (draft) images it raise the 404 error just because the post is in draft mode.
    that’s why Google thinks this is being blocked by robots.txt

    Hope this helps some body trying to figure out the issue..

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘sitemap probelm’ is closed to new replies.