• Resolved Manu

    (@manuxx34)


    Hi,

    We have a really strange case. So yoast is indexing a post like “ourwebsite.com/test” probably a URL that we created in the past.

    However the URL is not published and doesn’t even exist anymore in the backend but Yoast is showing it in the post sitemap. Therefore submitting it to GSC and causing the error Submitted URL not found (404).

    How can we get rid of that, I read your docs but they don’t mention this scenario and we can’t access a non existing post to prevent Yoast from adding it in the sitemap.

    Why is Yoast creating a URL in the sitemap for a non existing URL, any way to fix that or make the sitemap update?

    Regards

    • This topic was modified 4 years, 7 months ago by Manu.
    • This topic was modified 4 years, 7 months ago by Manu.
    • This topic was modified 4 years, 7 months ago by Manu.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support devnihil

    (@devnihil)

    The sitemap should not include any URLs of pages that no longer exist on the site. Whereas the XML Sitemap should dynamically update after any modification to it, if the site or server is caching the sitemap this can cause it to not update right away. We also have additional information on this at the following link: https://kb.yoast.com/kb/sitemap-does-not-update/. If you are not seeing the sitemap as updated, we would recommend checking your caching settings and to ensure that the sitemap is being excluded from the cache.

    If you are still experiencing an issue with the sitemap not updating after checking your caching settings, you can also force a cache reset by temporarily disabling the sitemap feature, and then re-enabling. To do so please perform the following steps:

      ?In WordPress go to SEO>General>Features
      ?For ‘XML Sitemaps’ Toggle the switch to ‘Disabled.’
      ??Click ‘Save Changes.’
      ?Toggle the switch back to ‘Enabled.’
      ?Click ‘Save Changes.’

    ?We also have a guide on how to enable/disable XML Sitemaps here: https://kb.yoast.com/kb/enable-xml-sitemaps-in-the-wordpress-seo-plugin/

    Can you please try the aforementioned suggestions and letting us know whether it resolves your issue and you are able to successfully update the sitemap and it removes the URL of the nonexistent page?

    Plugin Support Jerlyn

    (@jerparx)

    Closed. No further questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Google Search Console error due to sitemap’ is closed to new replies.