Home / Fix guides / Broken links, errors and uptime

How to find and fix broken internal links on your website

A broken internal link is a link on your site that leads to one of your own pages that no longer loads. Find them with Google Search Console or a free crawler, then correct each link or redirect the old address to the right page.

A broken internal link is a link on your own website that points to another page on your own website, and that page no longer loads. A visitor clicks it and gets a 404 Page not found message instead of what they expected. The fix has two parts: find every broken link, then either correct the link or send the old address to the right new page.

What people see and why it happens

Most of the time visitors see a 404 error page. Sometimes they see a blank page or a server error. Common causes:

  • A page was deleted or unpublished, but menus, buttons or blog posts still link to it.
  • A page address (the slug) was changed, for example from /about-us to /about, and old links were not updated.
  • A typo in a link, such as a missing letter or an extra slash.
  • Links typed with the full address of an old domain, a test copy of the site, or http:// instead of https://, often left over from a redesign or a move.
  • A product or category was removed from a shop but is still linked from a banner or blog post.

Why it matters

Visitors who hit an error page usually leave. If the broken link is on your pricing page, a contact button or a product, that is a lost enquiry or sale, and the site starts to look neglected.

Search engines find your pages by following links. A link that leads nowhere wastes that path, and the pages you meant to promote get less support from the rest of your site. A handful of broken links will not get your site penalised, but broken links on important pages, or hundreds of them after a redesign, are worth fixing promptly.

How to check for broken internal links (free)

  1. Click through your own site. Open the main menu, footer, homepage buttons and your top few pages. It takes ten minutes and catches the worst ones.
  2. Google Search Console. It is free once you verify your site. Open the Pages report (under Indexing) and look for the reason Not found (404). It lists addresses Google tried and could not load. The URL inspection tool often shows a referring page, which tells you where the link came from.
  3. A crawler. Screaming Frog SEO Spider is free for up to 500 URLs. Crawl your site, open the Response Codes tab and filter by Client Error (4xx). Select a broken address and check the Inlinks tab at the bottom to see every page that links to it.
  4. The W3C Link Checker at validator.w3.org/checklink checks a page and can follow links to other pages on the same site.
  5. On WordPress, the Broken Link Checker plugin reports broken links inside your dashboard. On some hosting it can be heavy, so some people run it for a clean up and then deactivate it.

If you would rather not do this by hand, week 6 of SiteMonday is a broken links and 404 sweep. It finds the broken links and puts them in a ranked fix list. Fixing them is still up to you or your developer.

How to fix them

Go through your list one link at a time and pick the right action:

  • The page moved: edit the link so it points to the new address.
  • The page was deleted but a similar page exists: update the link to the similar page, and also redirect the old address to it.
  • The page was deleted and nothing similar exists: remove the link, or point it to the closest useful page, such as a category or your contact page.
  • It is a typo: correct it.

Fix the link itself wherever you can. A redirect is a safety net for bookmarks and links from other sites, not a replacement, because each redirect adds a small delay. Use a permanent (301) redirect and send the old address to the most relevant page, not automatically to the homepage. There is more on this in deleted pages without redirects. While you work, a helpful custom 404 page keeps visitors moving instead of stranding them.

Where you do this depends on your platform and version, but these are the usual places:

PlatformEdit linksRedirects
WordPressEdit the page or post; menus under Appearance, Menus (or the Site Editor in block themes)A redirect plugin, or your host's redirect tool
ShopifyOnline Store, Navigation for menus; edit the page or productOnline Store, Navigation, URL Redirects
WixEdit in the Editor; menus in the Pages panelMarketing and SEO, SEO tools, URL Redirect Manager
SquarespaceEdit the page; navigation under PagesSettings, Developer Tools, URL Mappings (varies by version)
WebflowSelect the link in the Designer; menus in the NavigatorSite settings, 301 redirects (may sit under Hosting)
DrupalEdit the content; menus under Structure, MenusThe Redirect module (a contributed module)
JoomlaEdit the article; menus under MenusComponents, Redirects, with the redirect system plugin enabled

A step by step version for one platform is in the WordPress guide.

How to confirm the fix worked

  1. Crawl your site again with the same tool. The 4xx list should be empty, or contain only links you decided to leave.
  2. Open a few of the old addresses in a browser and check they land on the page you intended. One redirect hop is ideal.
  3. In Search Console, open the 404 report and use Validate fix. Google rechecks over days to weeks, so do not expect an instant change.

How to stop it coming back

  • Before you delete or rename a page, search your site for links to it.
  • Avoid changing page addresses without a reason. If you must, add the redirect the same day.
  • Link with your editor's page picker where it has one, rather than typing full addresses by hand.
  • After a redesign, a platform move or a domain change, crawl the site again straight away.
  • Check on a schedule, for example once a quarter, and put it in your calendar.

Step by step for your platform

Questions

Do broken internal links hurt SEO?

A few will not cause a penalty, but they waste visitors' time and the path search engines use to find your pages. They matter most on important pages or when there are many after a redesign.

What is the difference between internal and external broken links?

Internal links point to other pages on your own site, so you can fix them yourself. External links point to other websites, and the fix is usually to update or remove them.

Should I redirect every broken link to my homepage?

No. Send each old address to the most relevant page, and if none exists, remove the link. Mass redirects to the homepage confuse visitors and rarely help.

How often should I check for broken internal links?

Once a quarter is a sensible habit for most small sites. Check straight away after a redesign, a migration or deleting several pages.

Should I use a 301 or 302 redirect?

Use a 301 when the move is permanent, which is the usual case for a deleted or renamed page. A 302 is for temporary moves only.

Why does Search Console list 404 addresses I never linked to?

Another site may have linked to a wrong address, or an old page you removed may still be remembered by Google. Check whether the address should redirect, then ignore the rest.

Related problems