Why links break and how to prevent that from happening?

Few things are more frustrating than clicking a link and hitting a 404. Broken links hurt your user experience, damage your credibility, and quietly chip away at your SEO. A triple threat.

Let's dig into why links break, how to prevent it, and what to do when they slip through anyway.

A link breaks when the page it points to can't be reached anymore. The browser requests the URL, the server responds with a 404 Not Found (or 410 Gone, or a 5xx error), and your visitor sees an error page instead of content.

Broken links happen in two flavors:

  • Internal: links within your own site that point to pages you control
  • External: links to pages on other people's sites, where you have no control over what they do with them

Pages get deleted or moved

The most common reason. A page gets deleted or moved to a new URL, and the old URL isn't redirected. Visitors and search engines hit a dead end.

The URL structure changes

Even small structural changes can break every existing link to a page, unless you add redirects. Something like renaming a blog section from /blog/ to /articles/:

yourdomain.com/blog/post-title

becomes:

yourdomain.com/articles/post-title

Every incoming link to the old URL now 404s unless you add a 301 redirect.

A typo in the URL

You goofed. It happens. Most of us don't type URLs manually anymore, but when you do (in a Markdown file, an email signature, a CMS field), one missed character breaks the link.

An external website changed

You link to a great article. A year later, the other site redesigns, changes its URL structure, or takes the post down. Your link is now broken, and you won't find out unless you check.

The domain expired

Websites shut down. Domains expire. Sometimes the whole target just vanishes. (Rarely on purpose. Someone forgot to renew.)

CMS or plugin issues

Certain content management systems (yes, WordPress, we're looking at you) can mangle URLs during updates, plugin changes, or content imports. Posts get new slugs, media paths shift, and half the images in old posts suddenly 404.

Incorrect relative paths

Relative URLs like ../page.html work fine until someone moves a page or restructures a folder. Absolute URLs are more verbose but hold up better over time.

Broken links aren't just an annoyance. They genuinely hurt your site:

  1. Poor user experience. Dead links frustrate visitors and push them away. One 404 is forgivable. A site full of them feels abandoned.
  2. Negative SEO signal. Search engine crawlers treat lots of broken links as a sign of low-quality or poorly maintained content. Rankings suffer.
  3. Lost link equity. Inbound links pass authority between pages. When a linked page disappears, that authority evaporates.
  4. Accessibility issues. Screen readers and assistive technologies can struggle with broken links, sometimes blocking access to real information.

Most broken links are preventable with a bit of structure.

1. Use redirects for moved or deleted pages

Changing or removing a URL? Add a 301 redirect to the closest equivalent page. That keeps visitors happy and preserves your SEO value.

2. Build a helpful 404 page

Even with perfect redirects, some links will eventually break. A good 404 page points visitors at your main navigation, a search box, and a few popular articles. Turn a dead end into a detour.

3. Use stable, descriptive URLs

Avoid URLs full of session IDs, timestamps, or random query parameters. Short, descriptive URLs are easier to remember, less likely to change, and better for SEO.

4. Audit your site regularly

A tool that crawls your site looking for broken links is worth more than manually clicking around.

Options to consider:

  • Oh Dear (hi!)
  • Screaming Frog
  • Ahrefs Site Audit
  • Google Search Console (the Pages report shows not-found URLs)

Oh Dear also keeps an eye on your certificates, uptime, DNS records, domain renewal, scheduled tasks, Lighthouse scores, and more, and lets you route notifications to email, Slack, Teams, SMS, or a dozen other channels. Try it free for 30 days - no credit card required.

It's easy to think broken links are only an internal problem. They're not. External sites break more often than yours does, because you don't control any of the changes on the other end. Oh Dear's broken links check watches both internal and external links, so you hear about it the same week it breaks instead of six months later.

If you have multiple editors, add "verify every link" to your publishing checklist. It sounds basic, but most broken links slip in at publishing time.

A few advanced tips

  • Use canonical URLs to tell search engines which version of a page is the preferred one. Helps if you have duplicate or near-duplicate content.
  • Keep a URL map during any redesign or migration, so you can plan redirects in advance instead of patching them after the fact.
  • Avoid hardcoding URLs in multiple places. Prefer templates, includes, or dynamic linking so one change updates every instance.

Wrapping up

Broken links are small problems that add up. Fix a handful and you've got a tidier site. Ignore them for a year and you've got an SEO problem and a frustrated audience.

The good news: once you know what to look for, it takes a fraction of the effort to prevent a broken link than it does to recover from one. And if you'd rather not do the looking yourself, that's exactly what monitoring tools are for.

Related Questions

View all General questions →

Want to get started? We offer a no-strings-attached 10 day trial. No credit card required.

Start monitoring

You're all set in
less than a minute!