Blog / Technical SEO /
How to find and fix broken links on a WordPress site
One broken link on a site isn’t a disaster. A visitor clicks, gets a “page not found”, sighs, and goes back.
A hundred broken links is different. It tells visitors nobody’s looking after the place. It wastes the attention search engines spend crawling your site. And if other websites link to pages that no longer exist, you’re throwing away the value of those links.
The good news: finding them is free, and fixing them is mostly boring rather than hard.
Two kinds of broken link
It helps to split them up, because the fixes are different.
- Internal broken links: links on your own site pointing to your own pages that don’t exist any more. These are completely in your control.
- Broken inbound links: other sites (or old bookmarks, or Google) pointing to URLs on your site that now return a 404. You can’t edit their links, but you can redirect the old URL.
There’s also a third kind, links from your site to other sites that have died. Those are worth fixing too, mostly for your readers’ sake.
Finding them
Google Search Console
Under Indexing → Pages, look for the reason Not found (404). This shows URLs Google tried to crawl and couldn’t find. It’s the best list for broken inbound links, because it reflects what Google actually knows about.
Not every 404 here needs fixing. A URL that never existed, or one that was deleted on purpose and has no links or traffic, can stay a 404. Focus on URLs that used to be real pages.
A crawler
A crawler visits your site like a search engine would and reports every link it can’t follow. Screaming Frog SEO Spider is free for up to 500 URLs, which covers most small sites. Run it, then filter by Client Error (4xx) and look at the “inlinks” for each broken URL to see which pages contain the bad link.
Plugins (use with care)
There are WordPress plugins that check links continuously. They work, but some are heavy, because they keep checking in the background on your server. On a busy or cheaply hosted site, I’d rather run a crawler once a month than leave a checker running all the time.
Fixing them
Internal broken links: edit the link
If a page on your site links to a dead URL, the right fix is to edit the link to point to the correct page. A redirect would also work, but sending every visitor through a redirect when you could just fix the link is a bit lazy.
Common causes worth knowing:
- a page’s slug was changed after other posts linked to it
- a page was deleted or merged into another
- typos in hand-written links
- links to a staging or development address that went live by accident
Old URLs: redirect them
If a URL used to be a real page, especially one with links from other sites, add a 301 redirect to the most relevant page that exists now. The free Redirection plugin makes this easy, and many SEO plugins include a redirect manager too.
A few rules I stick to:
- Redirect to the closest match, not just the home page. Someone looking for a guide on watercolour brushes wants the watercolour page, not your home page.
- If nothing relevant exists, a 404 is honest. A redirect to an unrelated page isn’t helping anyone.
- Avoid chains. If A redirects to B and B now redirects to C, update A to go straight to C.
Links to other sites: update or remove
If an external page has moved, update the link. If it’s gone, find a replacement source or remove the link and adjust the sentence.
Make the 404 page useful
Some broken links will always slip through. A good 404 page softens the landing: a short, friendly message, a search box, and links to your main sections or most popular posts. Plenty of themes ship with a bare “Nothing found” message. It’s worth five minutes to improve it.
Stop them happening
- Change slugs carefully. If you change a URL, add the redirect at the same time. Some SEO plugins do this automatically. Check whether yours does.
- Don’t delete, redirect. When removing old content, decide where its visitors should go first.
- Crawl after big changes: a redesign, a host move, a new theme.
- Put it on a schedule. A monthly crawl on a small site takes minutes.
FAQ
Do broken links hurt my rankings?
A few broken links won’t sink a site. But lots of them waste crawling, frustrate visitors and lose the value of inbound links. It’s worth fixing the ones that matter.
Should I redirect every 404 in Search Console?
No. Redirect URLs that used to be real pages or have links pointing to them. Random URLs that never existed can stay as 404s.
301 or 302?
301 for permanent moves, which is almost always the case here. 302 is for genuinely temporary changes.
Related reading
When did you last crawl your own site? If the answer is “never”, Screaming Frog’s free version and twenty minutes will tell you a lot.