What Is a 404 Error? How It Affects SEO & How to Fix It

Tan Siew Ann

Dec 03, 202410 min read
Error 404
Share

TABLE OF CONTENTS

What Is Error 404?

An HTTP error 404 happens when a web server can’t locate a resource, such as a webpage, at a specific URL.

This can occur if:

  • The user entered an incorrect page URL, possibly due to a typo
  • The website owner deleted the resource, so it’s no longer available on the server
  • The website owner changed the URL linking to the resource
  • The website owner misconfigured the website, preventing the server from finding the resource

Website owners tend to dread 404 errors.

Why?

Because 404 errors make it so users can’t access the page's content, even if they try.

However, 404 errors aren’t always negative. They can assist search engines in properly indexing and ranking your pages. 

This article provides a detailed explanation of error 404 and its impacts. You’ll learn how to identify 404 errors on your website and methods to fix them if necessary.

What Does a 404 Error Look Like?

A 404 error can appear in various forms.

Sometimes, the error page is very simple:

Upflex's 404 error page that reads "Whoops" 404"

Other times, they are more intricate or even playful:

ebay's 404 error page that reads "We looked everywhere. Looks like this page is missing. If you still need help, visit our help pages" with an image of a child with a jacket over it's head

Here’s another example of a playful 404 error page:

Amazon's 404 error page that reads "Sorry we couldn't find that page. Try searching or go to Amazon's home page." with an image of a dog

Common messages you might see on 404 error pages include:

  • “The page you’re trying to access doesn’t exist”
  • “This page has been moved or deleted”
  • “The requested page URL can’t be found”

However, all 404 error pages share one thing: the HTTP status code 404.

Every time you visit a website, HTTP status codes are exchanged.

When you type a URL or click a link, your browser sends a request to the site's server. The server responds with an HTTP status code that provides information about the page.

HTTP status codes are always three digits and fall into five categories:

HTTP status codes categories

The "404" status code indicates that the resource at that URL is "not found."

When a browser tries to load content from a URL where the content doesn't exist, it receives the "404" HTTP status code from the server.

You can check any URL's HTTP status code using an HTTP status checker tool like httpstatus.io.

To use the tool, open it and paste a URL into the text field. Then click "Check status."

Paste an URL into the httpstatus.io tool

The tool will display the URL's status code.

httpstatus.io showing "404" status code for the pasted URL

‘Hard’ vs. ‘Soft’ 404 Errors

A hard 404 error occurs when a page is completely unavailable, and the server correctly responds with a 404 HTTP status code.

This response informs both users and search engines that the page doesn’t exist, ensuring that search engines don’t waste resources attempting to crawl or index it.

When search engines encounter hard 404 errors, they usually remove these pages from their indexes.

In contrast, a soft 404 error happens when a page appears to load successfully and returns a 200 status code, but its content signals to search engines that it’s essentially unavailable.

This often occurs when an error message or placeholder page is displayed without the correct 404 status code.

For example, a page labeled "Page not found" with little or no content may confuse search engines into treating it as a low-value page rather than removing it from the index.

Both hard and soft 404 errors can negatively impact SEO.

Impacts of 404 Errors

404 errors on your pages can lead to several consequences, especially if these pages shouldn’t have 404 errors.

1. Poor User Experience

404 errors can harm your visitors' user experience by preventing them from accessing the pages they want to see.

Let’s say you’re reading a TIME Magazine article on the best diet advice. You decide to click on the linked text: "Read about environmentally friendly food."

“Read about environmentally friendly food" link highlighted in the TIME Magazine article from above

But the link directs you to a 404 error page:

"Sorry, you've reached a page that doesn't exist." message on TIME Magazine

This error stops you from learning more about environmentally friendly food.

You have two options:

  • Spend extra time searching for information on environmentally friendly food elsewhere, which is inconvenient compared to the expected experience when clicking the link.
  • Choose not to learn about environmentally friendly food at this time, which is disappointing since the article sparked your interest.

In either case, it results in a negative user experience.

Your perception of the brand and your motivation to revisit the site likely did not improve because of this experience.

2. Search Engines Being Unable to Rank Your Page

For a page to rank on search engine results pages (SERPs), search engines must first index it by adding it to their search database.

A graphic showing how search engines work

If a search engine encounters a 404 error while crawling a page, it recognizes that the page doesn’t exist.

As a result, the search engine won’t index or rank that page.

This means users can’t discover that page through search engine searches.

3. Reduced SERP Presence

Pages on your website with 404 errors can limit your site's overall visibility on SERPs.

Since search engines don’t rank pages with 404 errors, a website with such pages will have fewer pages eligible to appear on SERPs.

Additionally, any backlinks to pages with 404 errors become ineffective, providing less benefit to your website's authority. This makes your site appear less authoritative to search engines, potentially lowering its SERP rankings.

This reduced SERP presence may lead to decreased organic traffic to your website.

How to Identify 404 Errors on Your Website

You could find 404 errors on your website by manually clicking each link to see if it leads to a "page not found" error message.

However, this method is tedious and time-consuming. Manually differentiating between "hard" and "soft" 404 errors can also be difficult.

Instead, try these methods for scanning your website for 404 errors at scale:

1. Use Semrush’s Site Audit Tool

Semrush’s Site Audit tool can detect over 140 technical website issues, including 404 errors. It also suggests solutions for fixing these issues.

Launch the tool, enter your domain, and click "Start Audit." Then, follow the prompts to set up your new project.

Site Audit tool search bar

Site Audit will begin checking your website for issues and generate an "Overview" report.

Click the report's "Issues" tab.

Site Audit overview dashboard with the "Issues" tab highlighted in the upper part of the tool

If Site Audit finds 404 errors on your website, you’ll see them under the "Errors" section. Look for a row that says "# pages returned 4XX status code."

“57 pages returned 4XX status code" error highlighted under the "Errors" list in Site Audit tool

Click this hyperlinked text to view a list of page URLs that returned a 4XX status code, such as a 404, 410, or 403 error.

A list of page URLs that have returned a 4XX status code errors

To sort the page URLs by their HTTP status codes in ascending order, click the arrows next to the "HTTP Code" heading twice.

“HTTP Code” column highlighted in the list

This groups all page URLs leading to 404 errors together for easy reference.

A list of all page URLs leading to 404 errors

Next to any page URL leading to a 404 error, click “(View broken links)”:

“(View broken links)” highlighted next to a page URL leading to a 404 error from the list

This shows you a list of pages that have included the broken URL in their content.

A list of pages that have included a broken URL in their content

From here, you can fix these URLs to prevent users from encountering 404 errors.

To set up regular, automatic auditing, click the gear icon at the top of the report. Then select "Schedule: Weekly, Every Friday" under "Site Audit settings" to have Site Audit regularly scan your website for 404 errors.

"Schedule: Weekly, Every Friday" selected under "Site Audit settings" drop-down menu

Dead Link Checker scans your website for dead or broken links—links that fail to bring the user to the intended destination, possibly due to a 404 error.

The free version can check up to 2,000 links at once.

To use it:

  • Open Dead Link Checker in your browser
  • Enter your website domain into the text box
  • Ensure the "Whole Website" setting is enabled
  • Click "Check
Add your website domain to the Dead Link Checker tool

Fill out the provided security code:

Security code pop-up in Dead Link Checker tool

Press "Enter" or "Return" on your keyboard to start the scan.

For each broken URL found, the tool displays:

  • The URL's status (e.g., "404 Not Found" for URLs with 404 errors)
  • The URL that returned an error
  • The URL's source link text (anchor text). Clicking the source link text opens the page containing the broken URL in a new browser tab, allowing you to locate and fix the broken URL.
A list of broken URLs the Dead Link Checker tool found

3. Check Google Search Console

Google Search Console (GSC) provides reports on your website's performance on Google's search results, including a page indexing report that displays URLs with "hard" and "soft" 404 errors.

If you haven't set up GSC for your website, you can follow the instructions in this GSC guide.

To access GSC's page indexing report:

  • Open GSC
  • Select your website property from the drop-down menu at the top left
  • Click "Pages" under the "Indexing" tab in the left sidebar
Property selection drop-down highlighted and "Pages" selected under "Indexing" tab in GSC sidebar

The "Page indexing" report will load. Scroll to the "Why pages aren't indexed" section.

If Google has detected 404 errors, you’ll see a "Not found (404)" row.

“Why pages aren’t indexed” section of the "Page Indexing" report

If Google has detected "soft" 404 errors, there will be a "Soft 404" row.

Click either row to view the corresponding report.

Scroll down to see examples of URLs that return "hard" or "soft" 404 errors.

A list of that return “hard” or “soft” 404 errors in GSC

The list of URLs in GSC's page indexing reports isn’t exhaustive because:

  • The report is based on Google’s last crawl of your website; new errors may have appeared since then
  • The report can display only up to 1,000 URLs at once

Do Your Website’s 404 Errors Need Fixing?

Not all 404 errors need fixing.

If you delete pages from your website and don’t want users to access them, their URLs should return 404 errors. This tells search engines not to index or rank their content.

If you want to display and drive traffic to pages that currently return 404 errors, then you need to fix them.

How to Fix Your Website’s 404 Errors

Even if Google detects a "404 not found" error on a page, it will continue to crawl the page—though less frequently over time and possibly stopping altogether.

There are five methods to fix unwanted 404 errors on your pages before Google's next crawl.

The diagram below shows which method might be most appropriate for any particular 404 error situation:

How to fix 404 errors on your website guide

If a link on your website leads to a 404 error due to a typo, edit the link so it directs users to the correct page.

For example, if the incorrect link is “https://example.com/blog/hello-wold” but it should be “https://example.com/blog/hello-world,” fix the 404 error by correcting the link to “https://example.com/blog/hello-world.”

2. Redirect the 404 Error-Causing URL

Set up a redirect that automatically takes users to the correct page to prevent users from landing on a page where content doesn’t exist.

This solution is ideal if you’ve moved a page's content from its original URL to a different one. A redirect sends users to the new page location without requiring updates to all instances of the link on your website.

Let’s say you originally published a guide to owning a cat at “https://example.com/owning-a-cat.”

Later, you write guides for other types of pets and decide to organize all guides under the subdirectory “https://example.com/guides/.”

You change the URL for your cat guide to “https://example.com/guides/owning-a-cat” and set up a redirect from “https://example.com/owning-a-cat” to “https://example.com/guides/owning-a-cat.”

Now, users who visit “https://example.com/owning-a-cat” won’t see a 404 error. Instead, they’ll automatically reach your guide at “https://example.com/guides/owning-a-cat” without any extra effort.

A redirect from “https://example.com/owning-a-cat” to “https://example.com/guides/owning-a-cat" page

There are various types of redirects. If you intend to permanently redirect users from one URL to another, set up a 301 redirect.

Further reading: Redirects: What They Are & How to Use Them

3. Add Content to the Page with a 404 Error

If you want users to access a URL that currently leads to a 404 error, add content to the page. 

Once the page has content, the 404 error will disappear because the server can now locate resources at that URL.

You can populate the page by restoring backup content or creating new content.

4. Remove the 404 Error-Causing URL from Your Website (and Redirect It)

If you no longer need a URL that causes a 404 error, remove it from your website. This prevents users from clicking the URL and encountering a 404 error.

If you used Semrush Site Audit to identify 404 errors, clicking "(View broken links)" next to a broken URL will reveal the pages that include return 404 errors.

A list of 404 errors in Site Audit tool

Edit these pages to remove links to URLs that cause 404 errors.

Afterward, set up an appropriate redirect for each URL you removed. This ensures that users who attempt to visit the URL from bookmarks or external links are redirected appropriately.

5. Restore a Clean .htaccess File

The .htaccess file contains rules that configure websites hosted on Apache web servers.

If this file is corrupted or its rules are formatted incorrectly, your website may not load properly, causing 404 errors when users try to visit specific pages.

To fix this issue, replace the corrupted .htaccess file with a clean version.

You can generate a clean .htaccess file using a tool like .htaccess Generator. Then, edit your existing .htaccess file to replace its contents with the new clean version.

The exact steps depend on your hosting platform. Here are guides for editing an .htaccess file on various popular hosting platforms:

Your hosting platform's customer support team can assist if you need help editing your .htaccess file.

Check Your Website for Error 404s Regularly

Having pages with error 404 on your website isn’t necessarily bad. However, you should be aware of which pages have 404 errors.

By knowing this, you can fix unwanted 404 errors that harm user experience or inadvertently reduce organic traffic to your site.

Semrush's Site Audit tool effortlessly detects 404 errors on websites of all sizes. Sign up for a free Semrush trial to put the tool to work on your website today.

Share
Author Photo
Siew Ann draws on her five years of SEO and email marketing experience to write creative, well-researched content for B2B SaaS businesses. Her articles have ranked on the first page of Google and as high as #1.
More on this