Broken Links: Common Causes and How to Fix Them (2024)

What Are Broken Links?

A broken link—also referred to as a “dead link”—is a hyperlink that doesn’t work. When you click on a broken link, it fails to take you to the intended page.

Hyperlinks usually appear as text or images that are underlined or highlighted.

For example, a hyperlink on the Semrush blog looks like this:

Broken Links: Common Causes and How to Fix Them (1)

But why do links break?

Let’s explore why links become broken and how to fix them.

Why Do Links Become Broken?

The Target Page Is Deleted or Moved

One of the most common reasons a link breaks is because the target page is deleted or moved to a new URL without updating the link.

Deleted pages lead the user to a 404 Not Found error page.

For example, let’s say eBay creates a temporary sale page (www.ebay.com/new-years-sale) and links it across its site.

After the sale, they delete the page but forget to remove the links.

Customers clicking the old link to this page will now get a 404 error and land on a page that looks like this:

Broken Links: Common Causes and How to Fix Them (2)

The 404 error page shows users that the site could not find the requested page. Potentially leaving users frustrated and confused.

Incorrectly Formatted URL

An incorrectly formatted URL can lead to a 400 bad request error.

A 400 bad request error is similar to a 404 but occurs when there’s a problem with the requested URL.

How does this happen?

You may have misspelled the link when adding it to a page. Or someone may have mistyped the URL on the page you’re linking to.

For example, say you want to link to a product page at www.website.com/blue-sneakers. But you accidentally include a “%” in the link, directing users to www.website.com/blue-sne%kers.

The “%” symbol in the URL would give users a 400 bad request error.

A 400 bad request error may look like this:

Broken Links: Common Causes and How to Fix Them (3)

This error occurs because the server cannot understand the request due to an invalid URL format. So, it rejects the request and returns a 400 error, indicating a bad request was made.

Change in Website Structure or URLs

Hardcoded links that contain the full URL can break if the site’s structure or URLs change.

For example, a page that moved from www.example.com/products to www.example.com/store/products could return 404 errors if any hard-coded links still point users to /products rather than the new /store URL.

Outdated hardcoded links lead to “dead ends” rather than directing users to the active page at its new location.

This happens because the hardcoded URLs weren't updated when the site’s architecture changed.

Broken Images

Links pointing to images can also break when the image files are moved or deleted without updating the links in the HTML code.

The <img> link in the HTML code still points to the outdated location, but the image file is gone.

That displays the “missing image” icon that looks similar to this:

Broken Links: Common Causes and How to Fix Them (4)

When this happens, the page still contains the old image link pointing to the previous file location. But the image file itself is gone, which creates the broken link.

Domain Name Change

Links to redesigned, retired, or migrated external sites can cause outbound broken links.

External sites returning Bad Gateway 502 errors indicate their servers can’t be found.

The resulting error page may look like this:

Broken Links: Common Causes and How to Fix Them (5)

For example, your site may link to www.company.com, but visitors get a Bad Gateway error because that domain no longer exists.

Why does this happen?

External sites naturally change over time—their domains shift, rebrand, or retire altogether. If internal links to these sites aren’t updated to reflect changes, they continue pointing users to broken URLs.

Malfunctioning Plugins

Links in third-party plugin code can break when the external platforms they rely on change their code.

For example, the social sharing buttons on the Backlinko blog in the image below will no longer work if Facebook or X (formerly known as Twitter) updates their share button code.

Broken Links: Common Causes and How to Fix Them (6)

Clicking the broken “Like” button could return a 404 error instead of allowing users to share your content.

This happens because your website is still running the old code, but Facebook’s servers now expect different code for their plugin to function.

The Impact of Broken Links

The Impact on SEO

Broken links can impact SEO in several ways:

  • Site quality: Google wants to recommend useful, up-to-date sites. Too many broken links can signal that your site isn’t up to date or is poorly maintained.
  • Crawl errors: Google’s site crawlers, or “bots,” crawl the web by following links between pages. When a bot hits a broken link, it creates a crawl error. Meaning your page can't be fully crawled and indexed in search engines.
  • Wasted link authority: Internal links pass authority (known as link equity) between connected pages on your site. But when Page A links to a broken Page B, that authority gets wasted rather than passed on.

The more broken links on your site, the more significant the impact on quality, crawlability, and SEO ranking.

The Impact on UX

Broken links can severely harm the user experience (UX). Users may leave your site if they repeatedly hit dead ends by clicking broken links.

For example, imagine shopping on Amazon but repeatedly landing on 404 product page errors due to broken links, ending up on a page similar to this:

Broken Links: Common Causes and How to Fix Them (7)

Constantly hitting dead ends could make users perceive your site as untrustworthy and poorly maintained.

How to Find and Fix Broken Links

Semrush Site Audit

Semrush’s Site Audit can crawl an entire site to surface crawl errors and broken links.

Here’s how.

First, you’ll need to create a new project or click on an existing one:

Broken Links: Common Causes and How to Fix Them (8)

Then, click on the “Issues” tab when the audit finishes and enter “Broken” into the search bar to find issues relating to broken links:

Broken Links: Common Causes and How to Fix Them (9)

You may see a list of errors that look similar to this:

Broken Links: Common Causes and How to Fix Them (10)

Click “X internal links are broken” or any other error. This will show you a report of what pages contain broken links.

Broken Links: Common Causes and How to Fix Them (11)

Hover over “Why and how to fix it” to learn more about the specific issue and how to fix it.

Broken Links: Common Causes and How to Fix Them (12)

Regular site audits with Semrush’s Site Audit tool can automatically detect broken links on your site.

Google Search Console

Google Search Console (GSC) is a free tool from Google that allows website owners to monitor their site’s presence in Google Search results.

The Page Indexing report in GSC can help you identify broken links.

How do you find this report?

Log in to GSC and go to “Indexing” > “Pages” in the left-hand menu.

Broken Links: Common Causes and How to Fix Them (13)

The report shows indexed pages returning 404 or other errors.

Broken Links: Common Causes and How to Fix Them (14)

Click “Not Found (404)” to see a list of pages returning 404 errors.

Broken Links: Common Causes and How to Fix Them (15)

Browser Extensions

Browser extensions like Check My Links and Broken Link Checker will automatically check links on pages as you browse and highlight broken ones.

Install the extension in Chrome. This adds a plugin icon next to the address bar.

As you browse pages on your site, the extension scans and analyzes all links in the background.

Any links that return 404 or other error codes will be highlighted on the page.

Broken Links: Common Causes and How to Fix Them (16)

Manual Checks

Another option is manually reviewing site menus and pages and checking for broken links or images. This gives you a user’s perspective of the broken links experience—but it can be pretty tedious.

How to Fix Broken Links

Prioritize Which Broken Links to Fix

You may not need to fix all broken links immediately.

While broken links can frustrate users, a custom 404 page that communicates a page no longer exists and helps users navigate away can be OK for lower-priority pages.

Google’s Search Quality Guidelines state that pages with a custom 404 error message page are often considered “medium quality” if they communicate the issue and help users navigate elsewhere.

Broken Links: Common Causes and How to Fix Them (17)

For example, this 404 page provides a helpful link back to the homepage.

Broken Links: Common Causes and How to Fix Them (18)

You should address your site’s broken links. But we recommend focusing first on fixing ones that impact crucial pages and the overall user experience.

How?

Check Google Search Console to see if the error is relevant.

First, click on “Pages” under the “Indexing” drop-down on the left-hand side. And click on “Not Found (404)”:

Broken Links: Common Causes and How to Fix Them (19)

Then, scroll down to the URLs listed under “Examples.”

Broken Links: Common Causes and How to Fix Them (20)

Assess whether the pages in Google Search Console’s 404 report are crucial to your site.

404 crawl error prevents Google from properly crawling and indexing a page that you want to be discoverable in search results. Checking this report can help you prioritize which links are the most relevant to fix.

Update the URLs

If the page still exists with a new URL, you can update internal links with a new URL.

There are a few options here:

  • Use a search-and-replace tool to mass update all instances of the old URL to the new URL. Many content management systems (CMSs) like WordPress have built-in search and replace functions.
  • Manually edit the old link text or image for individual pages to point to the new URL. Double-check for additional occurrences on that page.
  • When linking to pages in your navigation menus, update the target URL in your menu builder/editor if the page URL has changed

Remove Dead Links

Remove any internal links pointing to a page that no longer exists.

The “Issues” tab in Semrush’s Site Audit tool will tell you exactly what broken links each page has.

Broken Links: Common Causes and How to Fix Them (21)

So, you’d go onto each page and manually remove each broken link.

Redirect Broken Pages

Use 301 redirects to forward visitors from broken pages to relevant new pages. 301s tell search engines that content has permanently moved and pass link authority to the new URL.

Redirecting users to a relevant new page with a 301 improves the user experience compared to allowing users to land on 404 error pages when clicking broken links.

To create 301 redirects:

  • Use server rewrite rules if you have hosting access
  • Install a redirect plugin for CMSs like WordPress, Joomla, or Drupal
  • Use the built-in redirect manager for sites on Squarespace, Wix, etc.

Further reading:

Find Broken Links on Autopilot

Manually checking for broken links can be tedious. And easy to forget.

For ongoing maintenance, automate broken link scans using Semrush’s Site Audit tool.

How?

When starting a Site Audit scan, click on “Schedule” in the settings.

Broken Links: Common Causes and How to Fix Them (22)

Then, select how often you want your site crawled to check for new issues like broken links.

Broken Links: Common Causes and How to Fix Them (23)

Regular website audits catch broken links early before negatively impacting users and SEO.

Automating this process saves time over manual checks and ensures a seamless experience for your visitors.

Broken Links: Common Causes and How to Fix Them (2024)

FAQs

What are the causes of broken links? ›

Links may be broken for a variety of reasons, including the URL being mistyped, the webpage no longer being online, the page's URL having changed, or the linked page having restricted access (such as by being behind a password or firewall).

How do you fix a broken link problem? ›

Tips for fixing broken links
  1. Remove punctuation at the end of the link. ...
  2. Fix syntax problems. ...
  3. Copy and paste the link instead of clicking. ...
  4. Delete everything after the domain name. ...
  5. Solving more difficult problems.

What causes hyperlinks to break? ›

One of the most common reasons a link breaks is because the target page is deleted or moved to a new URL without updating the link. Deleted pages lead the user to a 404 Not Found error page. For example, let's say eBay creates a temporary sale page (www.ebay.com/new-years-sale) and links it across its site.

How to get rid of broken links? ›

  1. Broken links are links that lead to pages that do not exist. ...
  2. 1 Click on Diagnostics from the left menu and select Crawl Errors.
  3. 2 Select the Not Found category.
  4. 1 Click on Site Configuration, and select Crawl Access.
  5. 2 Select Remove URL.
  6. 3 Click on New removal request.
  7. 5 Click on Next.
Dec 19, 2023

How could the links be broken? ›

There are various reasons that broken links can occur, for example: The website owner entered the incorrect URL (misspelled, mistyped, etc.). The URL structure of your site recently changed (permalinks) without a redirect and it's causing a 404 error.

What is a broken link example? ›

A broken link is a hyperlink that points to a page or resource that does not exist. Most often, these linked pages were deleted or moved without a redirection set up. When the user or crawler follows a broken link, the server returns a 404 (Not found) or 410 (Gone) status code.

How to check if a link is broken? ›

Method #2: W3C Link Checker

To scan your site for broken links using W3C Link Checker, follow these steps: Use your web browser to visit the W3C Link Checker. In the Enter the address (URL) of a document that you would like to check text box, type the URL of the site you want to scan.

What happens if a link is broken? ›

A broken link is a link that doesn't go to a valid website or brings the user to a 404 error page. Usually, a broken link occurs when user tries to reach a website page that couldn't be found on server. A standard 404 error page looks like a white screen with “404 Not Found error” notification.

How do you fix hyperlinks not working? ›

The easiest fix is to simply open and reset your internet browser. See this article for steps on how to reset your browser. If the reset does not work, we need to replace an html file in the registry.

How to fix a URL problem? ›

How to Fix URL Problems: 9+ Easy Tips to Solve Invalid URL Issues
  1. Clearing Cache. ...
  2. Disable Problematic Extensions. ...
  3. Log out from Your Google Account. ...
  4. Uninstall and Reinstall Chrome. ...
  5. Using a Different Browser might Help. ...
  6. Review Your Permission Settings. ...
  7. Fix Broken Links. ...
  8. Set Up 301 Redirects for Content Permanently Moved.
May 16, 2024

How do you prevent links? ›

Hold Ctrl+Alt to disable the links temporarily. This extension is deprecated - Chrome has a built-in feature for this, just holding Alt while selecting prevents the link from being clicked. You can safely remove it. Previous description: This extension disables links when you hold Ctrl+Alt.

How to fix the broken links? ›

Updating or removing

Updating is the simplest fix; if there's a typo in the URL, you just need to swap it out for the correct URL and the link will work as expected. Of course, this method only works if a misspelled URL was the cause of the broken link! Removing the link is also an option.

How do I get rid of bad links? ›

What are the steps to remove bad backlinks?
  1. Collect Your Backlink Data. The first step is to compile a list of all of the backlinks coming to your website from different sources. ...
  2. Identify Bad Backlinks. ...
  3. Remove Bad Backlinks. ...
  4. Track and Monitor. ...
  5. Disavow The Remaining Bad Backlinks.
Mar 13, 2024

How to repair a website? ›

When your website is not loading, here are the 10 most common troubleshooting steps to solve it:
  1. Check if the website is down. ...
  2. Check the internet connection. ...
  3. Use a different device. ...
  4. Analyze the error message. ...
  5. Switch to another web browser. ...
  6. Verify the DNS records. ...
  7. Check the error logs. ...
  8. Use developer tools.

What are the main causes for link failure? ›

Link failures can be caused by equipment problems (e.g. a failed blade in a switch or router, power failure), a cable being unplugged or cut, a configuration change in the transport network or potentially a denial of service attack.

What causes broken image links? ›

This could be caused by a few things: incorrect image format, incorrect image size, incompatible browser, etc. You can try these solutions to fix your broken image link: Make sure your image is saved in a compatible format, such as . jpg , .

What are the effects of broken links? ›

Broken links negatively impact the user experience, hinder search engine crawling, and may decrease search rankings and overall website credibility. Hence, it's crucial for website owners to regularly identify and fix broken links to maintain a healthy website and enhance their SEO efforts.

Top Articles
Latest Posts
Article information

Author: Greg Kuvalis

Last Updated:

Views: 6807

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Greg Kuvalis

Birthday: 1996-12-20

Address: 53157 Trantow Inlet, Townemouth, FL 92564-0267

Phone: +68218650356656

Job: IT Representative

Hobby: Knitting, Amateur radio, Skiing, Running, Mountain biking, Slacklining, Electronics

Introduction: My name is Greg Kuvalis, I am a witty, spotless, beautiful, charming, delightful, thankful, beautiful person who loves writing and wants to share my knowledge and understanding with you.