Free, independent guides since 2010

SEO

404 errors and broken links: finding and fixing them

How to find broken links and 404 errors on your website, when to redirect and when a 404 is fine, how to make a helpful 404 page, and how to keep external links healthy.

<guide section="SEO" type="article" read="1 min"/>

Links break all the time: pages move, sites disappear, typos happen. For this redesign we checked more than 140 external links and unlinked the ones that were dead or had been taken over by unrelated sites. Here is how to do the same.

ToolFinds
Search Console (Pages report)URLs Google tried that return 404
A site crawlerBroken internal and external links on your pages
Server logsReal visitors hitting missing URLs
Browser extensionsBroken links on a single page

What to do with each

  • Broken internal link: fix the link.
  • Moved page: 301 redirect to the new URL (see redirects and .htaccess basics).
  • Removed page with a close alternative: redirect to that alternative.
  • Removed for good, no alternative: return 404 or 410.
  • Dead external link: replace with a current source, or remove the link but keep the text.

A helpful 404 page

  • Say clearly that the page was not found.
  • Offer search and links to the main sections.
  • Keep the normal navigation and design.
  • Make sure it returns a real 404 status code, not 200.

An external link can “work” but point to something completely different: expired domains are often bought and filled with spam or gambling content. Check important outbound links periodically by visiting them, not just by checking the status code.

Frequently asked questions

Do 404 errors hurt my rankings?

404s for pages that never existed or were rightly removed are normal and do not hurt your site as a whole. Broken internal links and lost valuable pages with links do cost you.

Should I redirect all 404s to the homepage?

No. Redirect only to a closely matching page. Mass redirects to the homepage are treated as soft 404s and confuse visitors.