As there are 4 types, and they have their specificities, here are some useful techniques to detect the different 404 errors and then correct them. To detect Internal and External 404 errors:
Use the “Coverage” report of the new Search Console and go to the section dedicated to type 404 errors in order to obtain and export a list of examples that you can then process manually or in bulk according to the URLs listed.
To detect internal 404 errors:
Use a Screaming Frog or Similar Crawler
Botify, OnCrawl, Sitebulb, Deepcrawl, etc. to identify all broken internal links on your entire website. To do so, simply launch a crawl on the root of your Pakistan B2B list website (and ideally also the URL of your sitemap) then go to the section dedicated to 404s on your favorite crawler. This will give you a list of all broken internal links that you should fix first.
To detect external 404 errors:
Use a backlink analysis tool such as Ahrefs and filter all backlinks by landing page response code: of course, you will only want to be interested here in backlinks that link to your site at a bad URL or an old page not redirected in 301 and therefore responding in 404.
Use the “Coverage” report of the new search console. Go to the section dedicated to 404s: Google lists here both a sample of internal. External 404 errors detected. If you want to detect 404 errors during your navigation to be sure that the response code returned by the page is indeed a 404, you can use a Chrome extension called Link Redirect Trace ( direct link to the extension ).
What Are the Best Practices for Handling 404 Errors?
Example of a 404 page customized and optimized for the user experience
In many cases, having 404 errors on your site is normal and will therefore have very little negative impact on the natural referencing of your website. However, a number of good practices and recommendations should be kept in mind:
Remove broken internal links if there are no longer any resources on your site. That can substitute for the old one. Modify and replace broken internal links with internal replacement links so as not to break your internal page rank traffic. Better boost the replacement page and in order to optimize the crawl and user experience on your site.
Delete obsolete 404 pages from your sitemap. If your sitemap contains 404 responders, it is highly recommended to delete them to stop asking search engines. If you do not have control over their deletion. It is recommended at least to redirect them using a 301 redirect to a semantically linked or similar replacement page. Customize the 404 error page with either an original page or one optimized for the user experience, ideally both.