If you are doing SEO for your website, you should have a sitemap.xml file, so that all of your content gets properly indexed by all search engines.
Also, you should make sure, that all URLs in your sitemap file are valid.
- Depending on the size of your sitemap.xml file, this will take some time.
- When it is finished, the fastest way to check for invalid links is by pressing CTRL + F and search for true. (This will show there broken link equals true).
That is it, you now can edit your sitemap.xml file and correct all invalid links.