# Broken links and 404s: how to find and fix them

> How to find broken links on your site, which 404 errors need fixing and which do not, and when to restore a page, redirect it or leave it alone.

Published 2026-12-02, updated 2026-12-02. Source: https://witnessqa.com/learn/broken-links-and-404s/

A broken link is a dead end for a visitor and for a crawler. Some 404s are a real problem and many are normal. This guide shows how to find them, how to tell the two apart, and what the right fix is for each.

## What a broken link costs

A link is broken when the address it points to answers with an error, most often 404, "not found". The page was deleted, its address changed, or the link was mistyped.

For a visitor it is a dead end at the moment they wanted something. On a product or a pricing link, that is a lost sale. For a crawler it is a page it cannot reach, and whatever value links to that address carried goes nowhere.

It helps to know what it does not cost. [Google treats 404s as a normal part of the web](https://developers.google.com/search/docs/crawling-indexing/http-network-errors). Pages get removed, and a 404 for a page that is truly gone is the correct answer. A list of 404s in Search Console does not lower the ranking of your other pages. So the goal is not zero 404s. It is no broken links on your own site, and no lost page that still matters.

## Three kinds of broken link

They have different causes and different fixes:

1. **Links on your site to your own pages.** Fully in your control, and the ones visitors hit most. Fix all of them.
2. **Links on your site to other sites.** The other site changed. Replace the link or remove it.
3. **Links on other sites to yours.** You cannot edit them, but you can redirect the address they point to.

Images, scripts and stylesheets break the same way. A missing image shows as an empty box. A missing script can stop a menu or a form from working, which is much worse than it looks in a report.

## Find them

- **Crawl your site.** A crawler starts at the home page, follows every link and records the status of each address. [Screaming Frog SEO Spider](https://www.screamingfrog.co.uk/broken-link-checker/) is the usual desktop tool, free up to 500 URLs. What you need from it is not just the dead address but the page the link is on and the link text, so you can go and fix it.
- **Read Google Search Console.** Under Pages, "Not found (404)" lists addresses Google tried and could not find. This shows what a crawl of your own site cannot: old addresses and links from other sites.
- **Read your own logs or analytics.** The addresses that answer 404 most often are the ones real visitors are hitting.
- **Run it on a schedule.** Links break when someone renames a page or deletes a product, so one check is out of date within weeks.

## Choose the right fix

For each broken address, ask what happened to the page:

| What happened | Fix |
| --- | --- |
| The link has a typo or an old address | Correct the link |
| The page was deleted by mistake | Restore it at the same address |
| The page moved | [Permanent redirect](https://developers.google.com/search/docs/crawling-indexing/301-redirects) (301) from the old address to the new one |
| The page is gone and something equivalent exists | Redirect to the equivalent page |
| The page is gone and nothing replaces it | Leave it as 404, and remove links to it |

Two rules keep this clean:

- **Fix the link, not only the address.** A redirect rescues visitors from outside. Your own links should point straight to the final address, without a redirect in between.
- **Do not redirect everything to the home page.** A visitor who clicked a link to a specific product and lands on the home page is as lost as on a 404, and Google treats such a redirect as a [soft 404](https://developers.google.com/search/docs/crawling-indexing/http-network-errors#soft-404-errors). Redirect only to a page that answers the same need.

## Make "not found" say so

A missing page must answer with status 404. Some sites show a "page not found" message with status 200, or send every unknown address to the home page. Crawlers then treat thousands of junk addresses as real pages, and your own link checks stop finding anything.

Test it: request an address that cannot exist and look at the status code.

Then make the page itself useful. Keep the header and navigation, say plainly that the page was not found, and offer a search box or links to the main sections. It will not help rankings. It keeps a visitor who would otherwise leave.

## Prevent the next ones

- **Redirect when you rename.** Whenever an address changes, add the redirect in the same change. Many platforms do it for you; check that yours does.
- **Avoid redirect chains.** A to B to C is slower and more fragile than A to C. When a page moves again, update the old redirects.
- **Check after every release.** A changed template can break one link on every page of the site at once.
- **Keep the sitemap in step.** It should list only pages that exist.

A [free WitnessQA audit](https://app.witnessqa.com/audit) follows the links on your pages and reports each [broken link](https://witnessqa.com/docs/checks/#broken_link) with the page it is on.

## Watch

- [How To Find Broken Links](https://www.youtube.com/watch?v=RxhpC0ryeP4), Screaming Frog. A three-minute walkthrough of crawling a site and finding the page each broken link is on.
- [How to Fix URL Not Found (404) in Google Search Console](https://www.youtube.com/watch?v=63wogPG1YhI), SEOTesting. Which 404s to fix, restore or redirect, and which to leave.

## The checklist

The same steps as an agent skill: https://witnessqa.com/learn/broken-links-and-404s/skill.md

1. **Crawl the links on your own pages.** Follow every link on every page of the site. No link to one of your own pages may lead to a page that does not exist.
   Verify: Request each same-site link. Every one answers below 400. For each that does not, note the page the link is on and its link text.
   WitnessQA checks: [broken_link](https://witnessqa.com/docs/checks/#broken_link), [http_error_page_404](https://witnessqa.com/docs/checks/#http_error_page_404)
2. **Check the links that leave your site.** Links to other sites still lead to a working page. Replace or remove the ones that do not.
   Verify: Request each external link. Treat 404, 410 and 5xx as broken. 401, 403 and 429 usually mean the other site refuses automated requests, not that the link is dead.
3. **Check images, scripts and stylesheets.** Every file a page loads exists. A missing image shows as a broken icon and a missing script can stop the page working.
   Verify: Load each key page in a browser and list the requests. None of the page's own files answers 404.
   WitnessQA checks: [http_error_request_4xx](https://witnessqa.com/docs/checks/#http_error_request_4xx)
4. **Make missing pages answer 404.** An address that does not exist answers with status 404, not with 200 and a "not found" message, and not with a redirect to the home page.
   Verify: Request an address that cannot exist, such as /this-page-does-not-exist-123. The status is 404 or 410.
5. **Redirect pages that moved.** When a page gets a new address, the old one redirects to it with a permanent redirect, straight to the final URL.
   Verify: Request each old address you know of. It answers 301 or 308 to a page that answers 200, in one step.
6. **Keep the sitemap clean.** The sitemap lists only pages that exist, by their final address.
   Verify: Request every URL in /sitemap.xml. Each answers 200 without a redirect.
   WitnessQA checks: [seo_sitemap_broken](https://witnessqa.com/docs/checks/#seo_sitemap_broken), [seo_sitemap_redirect](https://witnessqa.com/docs/checks/#seo_sitemap_redirect)
7. **Give the 404 page a way forward.** The "not found" page keeps the site navigation and offers a search or links to the main sections.
   Verify: Open the 404 page. It has the site header and at least one link to a working page.
8. **Read what the search engines report.** Look at the "Not found (404)" list in Google Search Console and fix the addresses that are important or that other sites link to.
   Verify: Ask the site owner. This cannot be checked from outside.