2

Right now I am using Yoast for SEO. I found 3000+ URLs indexed in Google Search Console, while I have just 100+ posts. By adding other stuff like tags and categories there should be around 300+ URLs. I start inquiring why there are too many URLs out there in Google Search Console. Then I found media attachments uploaded to WordPress each create a page URL that is indexed in Google.

I Tried to fix this with Yoast plugin as mentioned in https://yoast.com/media-attachment-urls/:

enter image description here

However, this caused a Google to report an increase in 404 not found errors in search console:

enter image description here enter image description here

So technically i have 2 Questions.

  1. How to Fix these 404 errors caused by Yoast settins?
  2. Why there are attachment-sitemap1.xml and other attachment-sitemaps.xml in my sitemap. While i have disable the attached media URLs with Yoast settings. What is the solution?

2 Answers 2

1

As far i understand what happens, your 404s are media attachment urls, which were previously created by buggy Yoast, indexed, and then removed by Yoast patch.

Your attachment sitemaps should in my opinion contain urls to media attachments (to the files directly). If any of attachment sitemaps contain media attachment urls (NOT to the files), such sitemap should be removed and filed by Yoast as bug.

1

If these were made by the buggy version of Yoast, you can use "Yoast SEO: Search Index Purge" plugin to remove from the 404 links from Google. https://wordpress.org/plugins/yoast-seo-search-index-purge/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.