Support » Plugin: Yoast SEO » Exclude from sitemap page(s) that doesn’t exist

Viewing 6 replies - 1 through 6 (of 6 total)
  • Jon

    (@jonhopstra)

    @twissell You do that in Yoast SEO settings. You should be able to exclude it. Have a look at Post Types or Taxonomies.
    See this article: https://makeawebsitehub.com/how-to-set-up-yoast-seo/
    Have Google re-visit your site/URL and remove the error. If the error stays for long have Google remove that URL from index (Google – Remove URL from Google)
    Good luck.

    Plugin Support Priscilla Chapman

    (@priscillamc)

    Hi @twissell,

    If search engines no longer show the original URL in search results, then that means that search engines are aware of the 301 redirect and have updated. In this case, you can safely remove the original URL from the sitemap.

    That said, we recommend adding the new URL to the post sitemap to ensure that the new URL will continue to be indexed by search engines.

    We have more details about removing pages from the sitemap or changing post URLs in sitemaps in this guide: https://yoast.com/help/how-to-customize-the-sitemap-index/.

    Thread Starter twissell

    (@twissell)

    Hi @priscillamc,

    Thanks for your reply. I see, but on the other hand there is one more question: how do I remove from the sitemap URL that returns 404th response?

    So, I mean URL exists in sitemap, but doesn’t exist at website anymore.

    • This reply was modified 1 year, 10 months ago by twissell.

    @twissell

    Yoast is not expected to output 404 URLs on the sitemap. If you are experiencing that we suggest the following steps:

    1. Go to SEO-General-Features and disable the sitemaps. Then save.

    2. Clear all the caching from your theme, plugin, server, CDN like CloudFlare or browser. If you are not sure how to clear caching from theme/plugin please speak to those authors. If you want to clear cache from the server, please speak to your host provider. To clear the cache from a browser use this guide: https://yoast.com/help/how-to-clear-my-browsers-cache/.

    3. Re-enable the sitemaps and see if the 404 URL no longer appears on the sitemap.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

    Thread Starter twissell

    (@twissell)

    Hi @devnihil!

    Sure you can close this topic for new replies and mark it as solved the reason of I get all info that I want to.

    • This reply was modified 1 year, 10 months ago by twissell.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Exclude from sitemap page(s) that doesn’t exist’ is closed to new replies.