How to Fix Error 404 Not Found on Your Site - Kinsta® (2024)

Of the many potential errors you might see on your site, Error 404 Not Found is one of the tamer ones. But that doesn’t mean it isn’t frustrating when you or your visitors try to browse your site and keep running into the Error 404 Not Found message. 😒

That’s the last thing you want first-time potential customers seeing from your brand. A 404 error can also be an indicator to you that something has changed or moved and a 301 redirect probably needs to be added for SEO.

In this post, we’re going to try to help you get your site working again by explaining a few things below.

What is the Error 404 Not Found?

The HTTP 404 error, also known as ‘404 Not Found’, is a standard response code indicating that your browser reached the server, but the requested resource couldn’t be located. It’s often caused by issues with DNS settings, improperly set file permissions, or a problems with the .htaccess file.

Support

For example: if someone tries to access yoursite.com/post-namebut you don’t have any content with the slugpost-name.The visitor will then see a 404 error because, even though your web server is functioning normally, the resource that was requested doesn’t exist.

It’s not just posts or pages either, any asset missing can generate a 404 error on the server, such as a missing image file, missing JavaScript, missing CSS, etc.

Here’s a more complete definition by the Internet Engineering Task Force (IETF):

The 404 (Not Found) status code indicates that the origin server did not find a current representation for the target resource or is not willing to disclose that one exists. A 404 status code does not indicate whether this lack of representation is temporary or permanent; the 410 (Gone) status code is preferred over 404 if the origin server knows, presumably through some configurable means, that the condition is likely to be permanent.

Whenever you, or one of your visitors, visit your website, your browser sends a request to the web server and receives back data including something called an HTTP header. The HTTP header includes HTTP status codes to explain “what happened” with the request.

Most of the time, the request works perfectly and you never actually see the HTTP status code (unless you go looking). But if something goes wrong, your web browser will usually display a message with the HTTP status code to indicate the exact problem.

Just like other error messages (500 error, 502 error, 503 error, 504 error, etc.), the Error 404 Not Found message is the result of that process.

Error Code404 Not Found
Error TypeBrowser protocol error
Error VariationsError 404
404 Not Found
HTTP Error 404
Not Found
Page Not Found
The requested URL was not found on this server.
The page cannot be found
We can’t find the page you’re looking for.
The requested URL /~ was not found on this server. That’s all we know.
Error CausesIssues with your site’s permalinks
No redirect after moving or renaming content

What Causes Error 404 Not Found?

If you see this error on all of your site’s content, it’s typically due to an issue with your site’s permalinks. If you only see it on individual pieces of content, though, it’s most likely because you changed a piece of content’s slug without setting up a redirect.

Additionally, the 404 error isn’t always a bad thing – it’s only bad when it’s interfering with usability. And sometimes things are just out of your control!

For example, sometimes a person might just type the wrong URL in their address bar. In that case, they’ll still see a 404 error, but there’s no actual problem with how your site is configured. This is actually the desired response, and you can create your own custom 404 page to help get visitors to the right spot (we’ll show you how later on).

Error 404 Not Found Variations

Because different browsers display error messages differently, you might see a different message for this error. Other common variations include:

  • “Error 404”
  • “404 Not Found”
  • “HTTP Error 404”
  • “Not Found”
  • “Page Not Found”
  • “The requested URL was not found on this server.”
  • “The page cannot be found”
  • “We can’t find the page you’re looking for.”
  • “The requested URL /~ was not found on this server. That’s all we know.
How to Fix Error 404 Not Found on Your Site - Kinsta® (1)

The Error 404 Not Found message is also unique in that many sites will actually create a custom page to address the error, rather showing one of the messages above. Some themes also include custom 404 pages by default. For that reason, you might not actually see the error message at all because many sites will use funny or creative 404 pages instead.

How to Fix Error 404 Not Found on Your Site - Kinsta® (2)

Below is an example of our own 404 page at Kinsta. We include a search box and some of our recent blog posts to help visitors find what they might have been looking for. Always include search functionality on your 404 page.

How to Fix Error 404 Not Found on Your Site - Kinsta® (3)

Error 404 Not Found Impact on SEO

Error 404 Not Found doesn’t have any inherent negative impact on SEO. But it might have a negative impact depending on the reason for why the error is happening.

For example, if a visitor just mistypes a URL and sees a 404 error – there won’t be a negative impact on SEO. But if you have individual errors because of broken URLs, that will inhibit Google’s ability to properly crawl your site and have a negative SEO effect in that way.

Additionally, if a permalink issue is causing sitewide 404 errors, Google won’t be able to crawl any of your site’s content. In other words, always fix your 404 errors as soon as possible.

Error 404 Not Found Impact on Site Performance

Many don’t realize it, but sites that generate a lot of 404 errors can easily run into performance issues, as these responses aren’t typically cached. We saw this a lot on larger sites and it can be a big problem if you accidentally promote or get a surge of viral traffic to a 404 page.

To minimize the impact of 404 requests on site performance, we automatically cache 404 pages for 15 minutes.

If you create a new page with the same URL as the cached 404 page, we’ll automatically purge the cache so your visitors will be able to see the new page immediately. This means your site will be protected from PHP and CPU spikes caused by traffic to dynamic 404 pages.

You are probably generating more 404 errors than you think!OurMyKinsta analyticstool can help you determine the exact amount (as seen below).

How to Fix Error 404 Not Found on Your Site - Kinsta® (4)

You can also quickly see what the top 404 errors are. In this example below, you can see the site is missing some mobile icons, such as /apple-touch-icon.png. These are most likely in a theme or plugin’s code that is getting queried, but the actual icons were never added. Therefore, the server generates a 404 error as it can’t find the resources.

How to Fix Error 404 Not Found on Your Site - Kinsta® (5)

You can also check 404 errors in Google Search Console or install a third-party plugin such asRedirectionwhich logs 404 errors. However, remember that plugins like these also have an impact on performance. It’s much better to rely on a server-level tool. That’s why we provide these tools for all Kinsta clients.

The reason these errors are bad is that many 404 pages are very resource intensive. For large sites, you’ll want toavoid a heavy 404 page. Create asimple 404 templatethat avoids querying the database any further if possible.

How to Fix Error 404 Not Found?

Below, we’ll cover different methods for how to fix the Error 404 Not Found message, depending on whether it’s happening sitewide or to specific content.

1. Clear Your Cache

Start by refreshing the page and double-checking the URL (typos are more common than you think).

If you’re still getting a 404 error, try accessing the link on another device. If you can see the page, the problem may be with your computer’s cache.

To clear your cache, check out our instructions on how to do it in different browsers:

  • How to Force Refresh a Single Page for All Browsers
  • How to Clear Browser Cache for Google Chrome
  • How to Clear Browser Cache for Mozilla Firefox
  • How to Clear Browser Cache for Safari
  • How to Clear Browser Cache for Internet Explorer
  • How to Clear Browser Cache for Microsoft Edge
  • How to Clear Browser Cache forOpera

2. Update Your Site’s Permalinks

If you’re experiencing sitewide 404 errors when trying to access content, the most likely cause is an issue with your permalinks (or your .htaccess file, if your host uses Apache). If you’re a Kinsta client, we utilize Nginx, so you can rule out the .htaccess file as a possible cause.

The easiest way to fix this is to update your permalink settings through the WordPress dashboard. All you need to do is go to Settings → Permalinks and click Save Changes (you don’t need to make any changes – clicking Save Changes is enough).

How to Fix Error 404 Not Found on Your Site - Kinsta® (6)

3. Set Up 301 Redirects For Moved or Renamed Content

If you’re experiencing 404 errors on a specific piece of content, the issue is likely that you:

  • Changed the URL slug for that content.
  • Moved that piece of content manually, e.g. by deleting the existing post and pasting it into a new post.

Users then try to access the content at the old location and see a 404 page instead of the resource they were expecting. The best way to fix this is to automatically redirect anyone who tries to access the old location to the new location. That way, they’ll make it to the right spot without any 404 errors. It’s also good for SEO. If you move or rename a post without adding a redirect, you lose all the domain authority attached to the backlinks pointed at that post.

WordPress by default will attempt to redirect changed/moved content. But it doesn’t always work and you should never rely on WordPress for this functionality. But don’t worry, there are several easy ways to set up redirects in WordPress:

First, you can use the free Redirection plugin to manage redirects from your WordPress dashboard. Once you’ve installed and activated the plugin, go to Tools → Redirection and enter the 404 page URL in the Source URL box and the new location of the content in the Target URL box:

How to Fix Error 404 Not Found on Your Site - Kinsta® (7)

If you’re hosting with Kinsta, you can also manage redirects from the MyKinsta dashboard. Using Kinsta’s tool is actually a better way to go about it as the rules are implemented at the server level, which is a much more optimalway in terms of performance. It also means one less third-party plugin you have to worry about.

To add a redirect, go to your site in MyKinsta and select Redirects in the sidebar menu. Then click the Add redirect rule button:

How to Fix Error 404 Not Found on Your Site - Kinsta® (8)

You can then define your redirect rule:

How to Fix Error 404 Not Found on Your Site - Kinsta® (9)

Finally, if your host uses the Apache server, you can use .htaccess to set up redirects. The .htaccess Generator site can help you generate the proper code to add to your site’s .htaccess file.

How to Create Your Own Error 404 Not Found Page?

While you can do your best to prevent 404 errors by following the tips above, it’s impossible to entirely eliminate 404 errors because some things are just plain outside your control. It’s not uncommon for small sites to have thousands of 404 errors every month.

For example, if a visitor mistypes the URL, or if another website links to a page that doesn’t exist, people are going to get 404 errors no matter what.

To provide a more user-friendly error page, you can use one of the many 404 page plugins. For example, the free404page plugin lets you set up a custom 404 error page with:

  • A search box
  • Important links
  • Contact information

Another important feature of the 404 page plugin is that it doesn’t create redirects. A 404 page should never be redirected to a physical page such as yoursite.com/404. The 404 error should always be generated dynamically on the page in question.

By including these elements, you give visitors the tools they need to find their way to the right page. But remember, keep your 404 page light for better performance. Only include what is absolutely needed.

How to Monitor 404 Errors Going Forward?

Going forward, it can be beneficial to pay attention to which requests are causing 404 errors at your site. This can help you:

  • Find broken links that are sending people to a non-existent resource (these could be internal links or external links from other sites). You’d then want to do your best to fix those links if at all possible.
  • See which pages Google is having trouble crawling. You’d then want to figure out why Google is trying to crawl a non-existent page and set up a redirect if needed.
  • Troubleshoot performance related issues with 404 errors.

Option 1 – Google Analytics

If you use Google Analytics, you can set up a custom report to track 404 errors from external links. Rebelytics has a good tutorial on the topic.

Option 2 – WordPress Plugin

If you want to use a WordPress plugin, the aforementioned Redirection plugin can help you monitor for 404 errors from your WordPress dashboard.

Option 3 – Third-Party Audit Tool

You can also use a third-party audit tool like Ahrefs to monitor for 404 errors on your site. You can even set this up to run on a schedule.

How to Fix Error 404 Not Found on Your Site - Kinsta® (10)

You can also find and monitor 404 errors with Sitechecker. Checking up to 900 pages is free with an auto crawling every 3-days. If you get a paid plan, you are able to set up monitoring daily or even every 12 hours.

How to Fix Error 404 Not Found on Your Site - Kinsta® (11)

Option 4 – Google Search Console

Lastly, you can track 404 errors that Google’s crawlers encounter in Google Search Console. Once you’ve verified your site with Google Search Console, go to Crawl → Crawl Errors → Not found to view a list of 404 errors that Google has encountered.

This is by far one of the easiest ways. It’s also the best in terms of performance because it requires no third-party plugins or additional scanning against your site. Google’s bots are already crawling your site on a regular basis, so why not simply take advantage of the data they already provide? 😉

How to Fix Error 404 Not Found on Your Site - Kinsta® (12)

Summary

Unfortunately, 404 errors will happen on your site whether you like it or not. The larger your site is, the more you’ll start seeing. We recommend getting a good workflow together for how you monitor these types of errors and go about fixing them. 404 errors are never good for visitors, your brand, and Google doesn’t like to see them either.

Have any other tips or questions regarding the Error 404 Not Found message or how it impacts your site? Let us know below in the comments.

How to Fix Error 404 Not Found on Your Site - Kinsta® (13)

Brian Jackson

Brian has a huge passion for WordPress, has been using it for over a decade, and even develops a couple of premium plugins. Brian enjoys blogging, movies, and hiking. Connect with Brian on Twitter.

How to Fix Error 404 Not Found on Your Site - Kinsta® (2024)

FAQs

How to Fix Error 404 Not Found on Your Site - Kinsta®? ›

First of all, we'd like to inform you that this is usually not due to our plugin, but due to poorly coded themes and/or other plugins. A 404 error basically means that the sitemap index or individual sitemap does not exist for a variety of reasons.

How do I fix error 404 not found? ›

8 tips for fixing 404 errors as a web user
  1. Refresh the page. ...
  2. Check the URL. ...
  3. Check the directory levels. ...
  4. Search the website. ...
  5. Use a search engine. ...
  6. Try to access the webpage from a different device. ...
  7. Clear your cache and delete cookies. ...
  8. Contact the website administrator.
Feb 13, 2024

Why is my sitemap showing 404 error? ›

First of all, we'd like to inform you that this is usually not due to our plugin, but due to poorly coded themes and/or other plugins. A 404 error basically means that the sitemap index or individual sitemap does not exist for a variety of reasons.

Why am I getting a 404 error on a website? ›

When you see a 404 error code, it means that the page you're looking for doesn't exist — either because it was moved, deleted or never existed in the first place. Occasionally, servers return 404 errors when the page you're looking for exists but is hidden.

Is error 404 My fault? ›

An HTTP error 404 occurs when the web server cannot find a resource (like a webpage) at a certain URL. This can happen if: The user has used the wrong page URL, e.g., by making a typo in it. The website owner has deleted the resource and it's no longer available on the server.

Does 404 error mean I was blocked? ›

404 errors: These occur when a page can't be found. This can happen if the page has been deleted or if the URL has been typed incorrectly. 400 errors: These indicate that the server is unable to process the request. This can happen if the website is down for maintenance or if there is an error in the code.

How do I get rid of Google 404 error? ›

Redirect or Fix URLs: Once you've confirmed the existence of 404 error pages, you have two primary options: redirect or fix the URLs. If the content previously existed but has been moved or deleted, consider setting up 301 redirects to redirect users and search engines to relevant pages.

What is 404 reason error? ›

The HTTP 404 Not Found client error response status code indicates that the server cannot find the requested resource. Links that lead to a 404 page are often called broken or dead links and can be subject to link rot.

How do I find page 404 error? ›

Google Search Console provides a list of every 404 error Googlebot finds on your site. This includes both hard 404s and soft 404s. Login to the Search Console, click Coverage, and select the Excluded tab. You'll see a list of hard 404 errors marked Not found (404) and soft 404 errors marked Soft 404.

Why does 404 keep appearing? ›

This is usually because a web server is not properly set up to handle the requested URL or resource. When the server is unable to handle or load the requested page the 404 error page appears.

How do I change my 404 error? ›

To customize your 404 page for customers and SEO, here are some best practices:
  1. Go to your Online store -> Actions -> Edit Languages.
  2. In the Filter translations search bar, type "404".
  3. Under the Errors section, click on "404 Not Found Page". Edit the content of the 404 page to your liking using the rich text editor.
Mar 15, 2023

What are two main causes of the 404 error message? ›

404 error codes are generated when a user attempts to access a webpage that does not exist, has been moved, or has a dead or broken link. The 404 error code is one of the most frequent errors a web user encounters. Servers are required to respond to client requests, such as when a user attempts to visit a webpage.

What is error code 404 and for the reason not found? ›

The typical trigger for an error 404 message is when website content has been removed or moved to another URL. There are also other reasons why an error message could appear. These include: The URL or its content (such as files or images) was either deleted or moved (without adjusting any internal links accordingly)

Top Articles
Top Commercial Real Estate Brokerage Firms | Reonomy Resources
Hitachi Cyber | Advanced Cybersecurity Solutions
Lorton Transfer Station
Fat People Falling Gif
Nfr Daysheet
DENVER Überwachungskamera IOC-221, IP, WLAN, außen | 580950
Clafi Arab
How do you mix essential oils with carrier oils?
South Ms Farm Trader
Edgar And Herschel Trivia Questions
Goldsboro Daily News Obituaries
Wordscape 5832
No Strings Attached 123Movies
Alaska: Lockruf der Wildnis
Funny Marco Birth Chart
Belly Dump Trailers For Sale On Craigslist
Chic Lash Boutique Highland Village
Aspen Mobile Login Help
Band Of Loyalty 5E
My Homework Lesson 11 Volume Of Composite Figures Answer Key
Webcentral Cuny
Culver's Flavor Of The Day Taylor Dr
Putin advierte que si se permite a Ucrania usar misiles de largo alcance, los países de la OTAN estarán en guerra con Rusia - BBC News Mundo
Watch Your Lie in April English Sub/Dub online Free on HiAnime.to
Naval Academy Baseball Roster
Prep Spotlight Tv Mn
D2L Brightspace Clc
Harrison County Wv Arrests This Week
Angel Haynes Dropbox
They Cloned Tyrone Showtimes Near Showbiz Cinemas - Kingwood
lol Did he score on me ?
Guide to Cost-Benefit Analysis of Investment Projects Economic appraisal tool for Cohesion Policy 2014-2020
The Rise of "t33n leaks": Understanding the Impact and Implications - The Digital Weekly
Roto-Rooter Plumbing and Drain Service hiring General Manager in Cincinnati Metropolitan Area | LinkedIn
Ktbs Payroll Login
Check From Po Box 1111 Charlotte Nc 28201
13 Fun & Best Things to Do in Hurricane, Utah
Lady Nagant Funko Pop
Television Archive News Search Service
Csgold Uva
Breaking down the Stafford trade
Victoria Vesce Playboy
Aloha Kitchen Florence Menu
Headlining Hip Hopper Crossword Clue
Online College Scholarships | Strayer University
Craigslist Pets Lewiston Idaho
Peugeot-dealer Hedin Automotive: alles onder één dak | Hedin
Tweedehands camper te koop - camper occasion kopen
Renfield Showtimes Near Regal The Loop & Rpx
Lagrone Funeral Chapel & Crematory Obituaries
Vt Craiglist
What Are Routing Numbers And How Do You Find Them? | MoneyTransfers.com
Latest Posts
Article information

Author: Domingo Moore

Last Updated:

Views: 6239

Rating: 4.2 / 5 (53 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Domingo Moore

Birthday: 1997-05-20

Address: 6485 Kohler Route, Antonioton, VT 77375-0299

Phone: +3213869077934

Job: Sales Analyst

Hobby: Kayaking, Roller skating, Cabaret, Rugby, Homebrewing, Creative writing, amateur radio

Introduction: My name is Domingo Moore, I am a attractive, gorgeous, funny, jolly, spotless, nice, fantastic person who loves writing and wants to share my knowledge and understanding with you.