How to fix 404 error caused by attachment URLs?

by Omair Farooq   Last Updated December 24, 2018 05:04 AM

Right now i am using Yoast for SEO. I found 3000+ url indexed in Google webmaster tools. 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 webmaster. Then i found media attached urls are also indexed in Google.

I Tried to fix this with yoast plugin as mentioned in

enter image description here

Google Increase 404 not found error 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 soultuion?

Related Questions

Updated October 21, 2018 10:04 AM

Updated April 04, 2018 11:04 AM

Updated July 26, 2018 20:04 PM

Updated November 29, 2018 18:04 PM

Updated January 12, 2018 08:04 AM