Why every website needs a custom 404 page (original) (raw)

How to properly create a custom 404 page

SEO and Content Marketing Expert at SE Ranking. Yevheniia blends strategic thinking with hands-on research to create insightful content on SEO, marketing, and AI in search

SEO Specialist at SE Ranking. Olena has expertise in market research, website performance improving, investigating and fixing technical SEO issues

Visitors usually see a 404 page after clicking on a non-existing URL. It informs users that the page they have been searching for is missing.

It may seem plain and simple, but in fact, plenty of things can go wrong when it comes to crafting a proper 404 page. Let’s find out what mistakes webmasters and developers make when setting up a 404 page.

Download AI Overviews Study by SE Ranking

Get a free copy of our research findings and sign up to SE Ranking’s news and SEO tips digests!

You’re all set!

Click the link we sent you in the email to confirm your email

and get AI Overviews Research by SE Ranking

Why users see a 404 page

A 404 page is the HTTP standard response code that indicates that a user reached a non-existent page because of clicking on a broken link, mistyping a URL, or because the page has been deleted.

In such cases, a user usually sees one of the standard messages:

404 meme

Yet, there is another option. Instead of the standard messages, a user may see a well-designed page with customized navigation elements. This scenario is much better, and later we’ll explain why. In the meantime, let’s figure out why a user sees a 404 page:

Although there is technically nothing wrong with having 404 pages on a website, webmasters should keep tabs on them to make sure all the pages that were removed were deleted on purpose. It’s essential to regularly do website audit to identify all the 404 pages and address any possible errors promptly.

Once you know the reason for 404 pages, here’s what you can do about it:

  1. Minimize the chance of displaying a 404 page to a visitor. Of course, you cannot make users enter a URL address correctly. Yet, you can fix the broken internal links as well as broken inbound links.
  2. If a user ends up seeing a 404 page, you have to make sure that it is well-thought-out. Thus, you can minimize reputational and usability damages.

How to fix 404 errors – tips for users

If you got a 404 error, here is what you can do:

  1. Try refreshing the page. Maybe some one-moment glitch occurred and this time the page will load smoothly.
  2. Check once again if there are any typos in the URL. Are all slashes in place? Has the “l” in “.html” not been occasionally deleted?
  3. Try loading the page from another device. If any error on the client side (device or browser) took place, the page would still be accessible from another one. If that worked, do not forget to clean the cache on the first device.
  4. Use the search. Google “site:[domain] [keyword]” of that page. It may happen that the page’s URL was changed without redirecting to the new address. If so, searching should help.
  5. Head over to the Web Archive. If none of the above solved the issue, there is still a chance to reach the content you need or at least one of its previous versions.

It also will be a plus if you report a problem to a website’s support so they solve it at the first convenience.

What makes a good or bad 404 page?

No matter how hard you try fixing all the errors, users will occasionally bump into your 404 page for one reason or another. That’s why your main goal is to provide a user with a rather pleasant experience.

First, let’s take a look at Google’s recommendations to create the right 404 pages:

Let’s take a look at each of these recommendations in more detail. The classic example is a server error page that doesn’t have any design and what’s worse—it doesn’t help visitors navigate to a valid page.

standard 404 page

No one is happy to see such pages. For instance, if you’re trying to get information on a product and click a link that you expect will lead you to that information, landing on a 404 page can be frustrating. A 404 page indicates that the content you were looking for wasn’t found. Most users would be annoyed and just leave your website to look somewhere else. In other words, you’ll turn many potential customers off to your brand. Studies also show that plain 404 error pages are definitely not the best solution because users make decisions extremely quickly nowadays.

Finally, this is the exact opposite of what Google recommends. After realizing that the needed page is not found, users are not encouraged to look further into your website. That’s why your main goal is to turn this error into something beautiful.

So, what is an amazing 404 page? Google describes it as follows:

  1. A 404 page should be similar to other pages of the website, except for the textual content. And that makes sense because the main goal of this page is to inform users that even when the page is missing, they are still on the same website and everything’s going to be fine. Visitors should see the familiar colors, logo, menu, and navigation elements.
  2. Add a navigation block with links to your best-selling or the most popular categories to make a user stay on the website.

404 links

  1. Feature a search bar. There is a chance that visitors will use it, enter a more relevant request, and find exactly what they need.

404 search bar

  1. Add a contact form to allow users to notify you about the problem and report a broken link. This way, you can effectively communicate with users, improve the quality of your website, and even find hidden errors.

add a contact form

  1. Get rid of the scroll bar. It is important to fit the webpage exactly as the screen size without scrolling.

scroll bar

  1. If a 404 page shows up because of an authorization request, you should provide the login form on the page.

404 login

Yet, there is something more. By creating a brilliant 404 page, you can turn the situation to your advantage and become viral—people might share your masterpiece and forget about all negative emotions associated with non-existent pages. You can find examples of great themed pages here or just search for “best 404 pages.”

themed 404 page

These guys really did a great job as this is something people want to share on social networks.

Don’ts for 404 pages

Poor information on 404 is not the only problem with error pages. There are a few other common mistakes to avoid.

Redirect to the main page

A 404 page is still a 404 page, so you should not set up a redirect from this page. Your only viable option is to paste links to the main page (and other relevant pages) so that users can click on them and continue their journey. The web crawler should understand that the page is not found (in case of 404 status code) or deleted (in case of 410 status code).

Thus, you shouldn’t redirect users to an irrelevant page, such as the homepage. John Mueller, the search advocate at Google, stated the same in one of his tweets:

https://twitter.com/JohnMu/status/1082565162597605377

You may still find WordPress plugins that redirect non-existent pages to the main page, but we strongly advise against using them.

There is only one situation in which these redirects are reasonable, which is when the redirects are to pages that meet the user’s similar search intent and solve the user’s similar problem.

Create a custom 404 page

We have figured out what the perfect error page should look like. Now, let’s see how to add a 404 page to website:

This is the basic flow. However, some CMS (content management systems) may generate a 404 page automatically or provide a user-friendly way to edit it. Also, there are plenty of plugins (like the 404 page for WordPress) for popular CMSs that allow you easily create, manage and set redirects for 404 not found errors.

Other HTTP status codes for error pages

According to Google Search Central, there is only one HTTP response status code for a non-existent page, and this code is 404.

But among other 4xx errors, there are 400 Bad Request, 401 Unauthorized, 403 Forbidden, 408 Request Timeout and 410 Gone.

Another story is that very often, webmasters intentionally make a custom 404 page send a 200 status code when it should return 404.

In that case, 200 status code indicates that the request has succeeded, but there is no result. That’s why serving up a 200 status code on the not found page to crawlers is not a good idea and can eventually lead to negative consequences:

That’s why you need to monitor servers’ response codes. You can do it with the help of the SE Ranking tool for SEO website audit.

In the “_Overview_” section, you can see how many 404 pages are on your website.

404 pages in the Website Audit report

In the “_Crawled Pages_” section, you can filter the needed pages by HTTP response status codes.

404 pages in Crawled Pages section

By properly handling error page status codes, you can help your website improve rankings. Check if your site positions improved with SE Ranking’s search rankings checker.

HTTP status codes key takeaways:

So, let’s sum it up. What should you do to avoid problems with 404 pages? Just create an amazing 404 page that will deliver the 404 response code and provide users with all necessary options to keep them on-site.

404 page FAQ

In this FAQ section, we’ve collected and answered some of the most commonly asked questions about 404 error pages. If you still have unanswered questions after reading this article, you will find further explanations and solutions here.

Why should I create a custom 404 page?

There are several reasons why creating a custom 404 page can benefit your website. It is a great way to:

Are 404 pages on my site bad for SEO?

Having 404 error pages on your site isn’t inherently bad for its SEO. Google Search Console Help notes that 404 errors won’t affect your website’s search performance, so you can safely live with them as long as you’re sure that all URLs returning 404 responses don’t exist.

But if this isn’t the case or you aren’t handling them properly, 404 pages can certainly do harm to your website. You want to be 100% certain that the page with a 404 code isn’t an important page on your site, (i.e., one that drives traffic to your website, converts visitors, or describes your brand). In addition, if many pages on your site return a 404 error, search engines might also think that your site is unreliable or poorly maintained, ultimately harming your search rankings.

How to find 404 pages

You can use different methods to find 404 pages on your website. You can use Google Search Console if your website is connected to it. If you haven’t connected your website to GSC, consider checking out our guide on how to set up GSC. Once you’ve connected your site, go to the Indexing tab and choose the Pages report. In the table, click Not found (404) as the reason why your pages aren’t indexed, and a list of 404 pages on your website will appear.

You can also use site crawlers like SE Ranking’s Website Audit to identify 404 pages. Once you create a project and run an audit, the Issue Report will display problems related to the HTTP status codes on your website. The Crawled Pages report under the Website Audit tool allows you to filter out all 404 pages for further analysis.

While tracking 404 errors, don’t overlook orphan pages. These are live pages with no internal links pointing to them, making them hard to discover and fix. They can quietly contribute to crawl and indexing issues. Learn how to locate and resolve them in our orphan pages guide.

Can soft 404 pages harm my website’s SEO?

Yes, soft 404 pages can potentially harm your website’s SEO because they are confusing to both search engine bots and users. Search engine bots will mistakenly assume that the page is valuable and relevant and crawl the page because soft 404s always return a “200 OK” status code. Since the page doesn’t actually exist or doesn’t have any content, it doesn’t provide any relevance to the user.

Returning a “200 OK” status code for a missing or empty page is considered bad practice and offers poor user experience, resulting in lower rankings.

How to create custom 404 pages that benefit UX

Crafting a well-designed 404 page contributes to providing visitors with a better site experience. Do it right by following these tips:

What’s next?

There are lots of other page types that commonly get dismissed but affect your website’s UX and SEO. Here are some more resources to get you started so you can make sure every page on your website delights your users:

Have a good and helpful read!

Yevheniia is an SEO and Content Marketing Expert at SE Ranking. With a profound expertise in digital marketing and content strategy, she creates impactful SEO-friendly content that resonates with diverse audiences. Yevheniia believes simplicity is key as it helps reduce the clutter in our heads and focus on what matters. This is the principle she uses in her writing. She follows the latest SEO, content, and marketing trends and incorportaes them into her workflow. She also enjoys cooking, learning new spices and flavors, traveling, and playing board games.