---
name: broken-links-check
description: Find the broken links and missing pages on a website, say which ones matter, and name the right fix for each: correct the link, restore the page or redirect it.
---

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

Work through the steps in order on the site you are given. Each step says what to do and how to verify it from outside, with plain HTTP requests and no JavaScript unless the step says so. Report each step as pass, fail or not checked, with the URL and what you saw.

The reasoning behind every step: https://witnessqa.com/learn/broken-links-and-404s/ (Markdown: https://witnessqa.com/learn/broken-links-and-404s/index.md). To run the checks marked "WitnessQA checks" automatically, start a free audit at https://witnessqa.com/.

## Steps

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.