How to Find and Fix Broken Links on Your Website

Grey metal chain in close up photography

A broken link sends a visitor to a page that does not exist. A few are inevitable on any website that changes over time, but too many waste visitors’ patience and stop search engines from reaching your content. This tutorial shows how to find broken links, decide what to do with each one and keep them from piling up.

Types of broken links

  • Internal links: links between your own pages that point to an address that no longer exists.
  • Outgoing links: links from your pages to other websites that have moved or closed.
  • Incoming links: links from other websites to an address on yours that no longer exists.
  • Broken images and files: missing pictures, PDFs or downloads.

Most broken links lead to a 404 Not Found response. Others time out, show a server error or land on an unrelated page.

Step 1: Find them

Use more than one source. Each sees something different.

Google Search Console

Open the Page indexing report and look at the Not found (404) group. These are addresses Google tried and could not load, often because of old links from other sites or pages you removed.

A crawler

A link-checking tool visits every page of your site, follows each link and reports the ones that fail. Desktop crawlers and online checkers both do this, and free versions are enough for a small site. This is the most complete way to find internal and outgoing problems.

A WordPress plugin

Link-checker plugins scan your content from inside WordPress. They are convenient, but those that run on your own server can slow it down. Prefer one that scans from an external service, or run the check occasionally and switch the plugin off afterwards.

Manual checks

Click through your menus, footer, buttons and most-visited pages yourself. Automated tools miss links that technically work but go to the wrong place.

Step 2: Put the results in a list

For each broken link, record:

  • The page where the link appears
  • The broken address
  • The link text
  • The type: internal, outgoing or incoming

Sort by importance. Fix links in navigation, on the homepage and on your most-visited pages first.

Step 3: Fix each one

Broken internal links

  • The page moved: update the link to the new address.
  • The page was deleted and has a replacement: link to the replacement and add a redirect from the old address.
  • The page was deleted with no replacement: remove the link, or rewrite the sentence.
  • A typing error: correct the address.

Broken outgoing links

  • Find the new location of the content on the other site and update the link.
  • If it is gone, link to another reliable source, or remove the link.

Broken incoming links

You cannot edit other people’s websites, but you can catch their visitors.

Broken images and files

Upload the file again, correct the path, or remove the reference.

Step 4: Check navigation and templates

One broken link in a menu, footer or sidebar is repeated on every page. Check these shared areas separately. Fixing a single item there can clear hundreds of reported errors.

Step 5: Verify

  1. Run the crawl again and confirm the errors are gone.
  2. Click the corrected links yourself.
  3. In Search Console, use Validate fix on the Not found group so Google rechecks the addresses.

Not every 404 needs fixing. An address that never should have existed and has no links pointing to it can simply stay a 404. That is the correct response for a page that does not exist.

Step 6: Make your 404 page useful

Some visitors will always reach a missing page. Make sure yours:

  • Says clearly that the page was not found
  • Keeps the normal menu
  • Offers a search box or links to the main sections
  • Returns the 404 status code, not 200

Step 7: Prevent new ones

  • Do not change the address of a published page unless necessary. When you do, add a redirect.
  • Before deleting a page, search your site for links to it.
  • Check links as part of your review before publishing. The Article Publishing Checklist includes this.
  • Run a link check monthly or quarterly. Add it to the Monthly Website Maintenance Checklist.

Common mistakes

  • Redirecting every missing address to the homepage.
  • Fixing the reported page but not the menu that causes the error everywhere.
  • Leaving a resource-heavy link-checker plugin running permanently.
  • Ignoring outgoing links for years.
  • Treating every 404 in a report as an emergency.

Next step

Fixing broken links is half the work. To make sure your pages link to each other sensibly, continue with How to Audit Internal Links on a Small Website.