How to Fix Broken Links on a WordPress Site

4 min read

Get this guide as a PDF FREE

Save it, print it or read it offline.

How to fix broken links on a WordPress site

This post may contain affiliate links. If you buy through them, I may earn a commission at no extra cost to you.

Broken links are links that lead to a page that no longer exists, usually showing a 404 error. On a WordPress blog they come from deleted posts, changed URLs, typos and external sites that move or close. The fix is simple: find them, then update the link, redirect the old URL or remove the link. This guide shows how to do each, using free tools.

Every blog collects broken links over time. You delete an old post, change a slug, or a site you linked to closes down.

A few broken links will not ruin your blog, but they frustrate readers and waste the effort you put into internal linking. Checking for them every few months keeps your site tidy.

Key takeaways

  • A broken link points to a page that returns an error, usually 404.
  • There are two kinds: internal (to your own pages) and external (to other sites).
  • Search Console shows URLs on your site that Google found returning 404.
  • Fix internal links by updating them, or redirect the old URL with a 301.
  • Fix external links by updating, replacing or removing them.
  • Redirect deleted or moved posts to the closest relevant page.

What Google says about 404 pages

Google’s documentation explains that it does not use the content of URLs that return 4xx errors, and that indexed URLs returning these errors are removed from its index over time.

Having some 404s is normal on any site. The real cost is to readers who click a link and land on an error, and to pages that lose the internal links pointing to them.

  • Deleted posts or pages that other posts still link to.
  • Changed URLs, for example after editing a slug or changing permalinks.
  • Typos in links you added by hand.
  • External pages that moved, changed or disappeared.
  • Expired affiliate or product links.

1. Search Console

In Search Console, open Indexing, then Pages, and look for the “Not found (404)” reason. Click it to see the URLs. My Search Console guide explains this report.

This shows URLs on your site that Google tried to visit and found missing. It does not list broken external links.

2. A redirect plugin with 404 logging

The free Redirection plugin on WordPress.org tracks 404 errors on your site and lets you add 301 redirects. Some SEO plugins, including Rank Math, also have redirection and 404 monitoring features you can switch on.

3. A crawler or online link checker

Free crawlers and online link checkers scan your pages and list links that return errors, including external ones. Run one every few months.

Pro tip

Before deleting any post, search your site for links to it first. Fixing those links at the same time saves you a clean-up later.

  1. Find the post containing the link. Use the report or tool that flagged it.
  2. Decide the right target. Is there a new version of the page or a closely related post?
  3. Update the link in the post to the correct URL.
  4. Add a redirect from the old URL if the page moved or was deleted, so any other links and bookmarks still work.

When to use a redirect

A 301 redirect sends visitors and search engines from an old URL to a new one permanently. Use it when:

  • You changed a post’s URL.
  • You merged two posts into one.
  • You deleted a post and have a close replacement.

Redirect to the most relevant page, not automatically to your homepage. If nothing relevant exists, letting the old URL return a 404 is acceptable.

  • Find the new location. The site may have moved the page. Search for its title.
  • Replace the source. Link to another reliable page that covers the same point, ideally an official one.
  • Remove the link if it no longer adds value.

For affiliate links, check the programme’s dashboard or contact the programme for the current link.

A simple maintenance routine

  • Monthly: check Search Console for new 404s.
  • Every few months: run a full link check, including external links.
  • Every time you delete or move a post: add a redirect and update internal links.

Combine it with your regular WordPress updates and content updates so it becomes routine.

Frequently asked questions

What is a broken link?

A link that leads to a page that no longer exists or returns an error, usually a 404.

Do broken links hurt SEO?

Google drops URLs that return 404 from its index over time. The bigger issues are a poor reader experience and lost internal links to your pages.

How do I find broken links on WordPress?

Use Search Console’s Pages report for 404s, a redirect plugin with 404 logging and a link checker for external links.

Should I redirect every 404 to my homepage?

No. Redirect to the most relevant page. If none exists, a 404 is fine.

How often should I check for broken links?

Check Search Console monthly and run a full link check every few months.

Share

Written by Nayan Dhumal

I’m a blogger and graphic designer. I’ve been blogging for 3 years and I run several sites, including a free SEO tools website. I also sell printable digital products on Gumroad. Here I share what I actually learn while doing it: what ranks, what earns and what wastes your time.

Leave a Reply

Your email address will not be published. Required fields are marked *

Some links on this site are affiliate links. If you buy through them, I may earn a commission at no extra cost to you. I only recommend tools I’d use myself.