Broken links: how to audit and fix them for SEO
Dead links frustrate visitors and waste crawler time. Here is how to find broken internal, outbound, and inbound links, and which ones to fix first.
Every site collects broken links over time. Pages get renamed, products get removed, and other sites shut down. Most of this is harmless. Some of it quietly costs you traffic, links, and trust. The trick is knowing which broken links matter and fixing those first.
Do broken links hurt rankings?
Not in the way many audit tools suggest. Google has said that 404 errors on their own do not harm the rest of your site. A page that no longer exists should return a 404, and that is normal.
The damage is indirect. A broken internal link sends a visitor to a dead end, and they leave. It also leaves a crawler with nothing to follow, so any page that depended on that link gets less attention. A broken inbound link throws away the value of a backlink someone already gave you.
So treat broken links as a quality and recovery task, not a penalty to avoid. Fix the ones that cost you something.
Three kinds of broken links
They look alike in a report, but each one needs a different fix.
- Internal broken links: a page on your site links to another page on your site that returns 404 or 410. You control both ends, so these are the easiest to fix and the most worth fixing.
- Outbound broken links: your page links to someone else's page that has since died. You cannot restore it, but you can replace or remove the link.
- Inbound broken links: another site links to a URL on your site that no longer works. The link is out of your hands, but the redirect that rescues it is not.
How to find them
Crawl your own site
A site crawler follows every link the way a bot would. Run one and filter for responses in the 4xx range. Export the report with the source page, the target URL, and the anchor text. You need all three to fix the problem quickly. SEO Pine's site audit tool can do this, and so can desktop crawlers.
Check Search Console
The Page indexing report lists URLs Google tried to fetch and could not find. Open a Not found (404) entry and check its referring page. Google does not always show one, so treat the list as a hint rather than a complete inventory.
Check your server logs
Logs show every 404 a real visitor or crawler hit, including URLs that no page on your site links to. Sort 404 responses by request count. A URL with hundreds of hits is worth far more attention than one with two.
Check a backlink report
Any backlink tool can list inbound links that land on error pages. Sort by the number of linking domains. A dead URL with ten referring sites is a much bigger loss than one with a single link.
How to fix each kind
Start with internal links. Update the link so it points to the correct live page. Do not fix it by adding a redirect and leaving the old link in place. A redirect works, but every click and every crawl pays for the extra hop, and chains of them add up.
For outbound links, check whether the content moved. If it did, update the link. If the source is gone, look for the same information elsewhere. If nothing good exists, remove the link and keep the sentence. Do not link to a replacement that says something different.
For inbound links, use a 301 redirect to the most relevant live page. Relevance matters. Redirecting a dead product page to the homepage often gets treated as a soft 404, so Google may ignore it. Point it to the closest equivalent, such as the category or the newer version of the product.
Fix the link where you control it. Redirect only what you cannot change.
What to prioritize
A long list will not all get fixed, so rank it. Work in this order:
- Inbound links from other sites, sorted by the number of linking domains.
- Internal links on your most visited pages, such as the homepage, top articles, and navigation.
- Internal links in templates, since one broken link in a footer repeats across thousands of URLs.
- Internal links on older, low-traffic pages.
- Outbound links, starting with the pages that get the most visits.
Keep it from coming back
Most broken links come from changes made without checking what pointed at the old URL. Add one step to your process: before you delete or rename a page, look up what links to it. Redirect it if it has inbound links or steady traffic. Let it 404 or return a 410 if it has neither.
Also schedule a crawl. Monthly works for most sites, and weekly suits large ones that change daily. Outbound links rot with no action on your part, so a one-time cleanup will not hold.
One caution: a custom 404 page that returns a 200 status is a soft 404, and it hides the problem from your own reports. Confirm that real missing pages return a true 404 status.
Your next step
Crawl your site this week and export every 4xx link with its source page. Fix the internal ones first, then pull a backlink report and redirect the dead URLs that other sites still link to. That covers most of the value in an hour or two.