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/:
However, this caused a Google to report an increase in 404 not found errors in search console:
So technically i have 2 Questions.
- How to Fix these 404 errors caused by Yoast settins?
- Why there are
attachment-sitemap1.xml
and otherattachment-sitemaps.xml
in my sitemap. While i have disable the attached media URLs with Yoast settings. What is the solution?