Improving 404 Page Design

Improving 404 Page Design

If a visitor gets to see your standard 404 error page, there’s a danger that they won’t be hanging around long to see what else your site offers. A custom 404 page, one which is inviting and helpful, will encourage your visitors to look further into your site instead of drifting off elsewhere.

Preview image from the Tuts+ 404 page.


Our Aim: To Improve the Default 404 Page!

A Bad 404 Page Design!

What’s Wrong With a Straightforward 404 Page?

The simple answer is, a lot. A 404 page that just says "Page Not Found" isn’t helpful to the visitor at all – adding a link saying "Return to Homepage" doesn’t really help either.

The lack of a decent 404 page weakens the user experience. Users who are trying to find a page on your site, but get the url wrong, or are sent there by a broken link, will be obliged to go back to the homepage and try again. If they still can’t find what they were looking for, they may end up getting frustrated and leaving your site. In an ideal world users wouldn’t be confronted with errors at all, but the 404 page at least gives us the opportunity to apologize and help users find what they were looking for. A contented user is more likely to return in the future.

Even worse than a poor 404 page is the complete lack of one. The user then has no idea what is going on at all, and there won’t even be a link back to the homepage. The lack of a 404 page will make your site look unprofessional and will only encourage visitors to leave.

A Bad 404 Page Design!

This is an example of a poor 404 page. Its one redeeming feature is the homepage link, and that doesn’t look particularly nice either. If your 404 page looks like this, it needs improvement!


Room for Improvement

A great deal can be done to improve our 404 page from above.

The key factor for a 404 error page is in making it easy and understandable for the user. Make it clear that the page they were looking for doesn’t exist (it helps to use language that is easy to to understand and jargon free). Try to explain why it doesn’t exist, has the page moved? State what the problem could be, in a friendly and inviting way.

Sorry, partner. The page you requested is not in our database. You may have followed a bad external link, or mis-typed a URL. – A List Apart’s 404 page

Don’t make the 404 experience seem like a big, bad ordeal. Make it a friendly, positive experience!


Tip 1: Maintain Design Consistency

It’s important that the design on your 404 page stay true to the rest of your site. This includes your logo, navigation, color scheme etc. Having a 404 page that is completely unrelated to the rest of your site may make the user feel as though they’ve been set adrift – by maintaining your brand, the 404 experience won’t feel like such a drama. The user will still feel involved with the site.

Consistent design by Twitter

Those of you who’ve played with Twitter’s Bootstrap will recognize their familiar branding, even on the 404 page.


Tip 2: Make it as Useful as Possible

As we keep mentioning, a 404 page needs to be extremely useful for the user. There are plenty of ways to achieve this, but some of the best features a 404 can have are:

  • A Search Form
    Having a search form on your 404 page will make sure that the user feels inclined to continue searching what they were looking for – thereby staying on your site.
  • A Link Back to the Homepage
    This is key to a 404 page, but if you have kept your site’s design and navigation then this will not be an issue as there should already be a link in your navigation.
  • Display a List of Popular Pages
    Play the odds. Perhaps the user was searching around for one of your more popular pages, in which case it would be useful to see a list of them for quick reference.
  • A Link to your Sitemap
    Providing a link to your sitemap (assuming that it’s useful and easy to understand as well) may be helpful. This way a user can browse through everything on your site and hopefully find what they were looking for. A search form handles this much better, but a sitemap link is still a good backup. Alternatively, your 404 Page could include a portion of your sitemap. If this is what you opt for, remember to keep the site’s theme and design intact.
  • Have Problem-specific Error Pages
    If a user is brought to your page because of, for example, a failed username search, or incorrect form data input, then you need to make this error screen similarly helpful. Provide easy ways to search again or display related pages.
  • Report a Broken Link
    Having an easy way for a user to report a broken link is also useful – especially to you! This can be in the form of a button which sends the broken link URL to you, or a simple email form.
Report broken links at NYT
Report broken links at NYT

Tip 3: Be Friendly and Understandable

Don’t assume your users know what a ’404 Error’ is. You’ll need to explain what the problem is in a simple, friendly and understandable manner. This way, a user won’t feel confused by your jargon. It’s better to say something like "Oops! We couldn’t find the page you were looking for.", than simply stating the facts, such as "404 Error: Page Not Found".

As a user, which would you prefer to see?

Apartmenthomeliving's 404 Page

Apartmenthomeliving’s 404 Page is quite funny and casual. Best of all, (although it isn’t visible in the picture) the page design remains consistent with site branding, and there are plenty of links to encourage the visitors to stay put.


Tip 4: A Minimalist Design also Works…

Having a minimalist, basic 404 Error page design can still be effective.

If you have a massive site, such as Google, with many, many possible related pages then a 404 page with things such as sitemap links, popular pages lists, or a search form isn’t particularly practical, and most likely won’t help the user much anyway.

Google's 404 Page Design

Google’s 404 Page is very minimalist but works well. There is still a link back to the homepage (the Google logo) and it is written in a friendly, understandable manner. The nice drawing also helps, creating a relaxed, calm atmosphere.

Although this seems to go against everything said so far, if it’s just too impractical to have an advanced 404 page, then a simple, friendly one is just as good.


Tip 5: Keep it Casual

A good 404 page can also be casual, and even funny.

Creating a 404 page that is funny and memorable can have a huge impact on keeping your visitors on the site. Also, if you have a particularly funny or amusing 404 page that stick’s in people’s minds, they may end up telling their friends so that people deliberately search for it! That was certainly the case with Github’s 404 page:

Github's Starwars inspired 404
Check out the innovative use of parallax movement on Github’s 404 page

Github are careful to maintain the useful aspects of a 404 page, even though they lighten the mood with humor.

Blizzard Entertainment's 404 Page

Blizzard Entertainment’s 404 page – definitely amusing but still keeps the links for helpfulness at the bottom, and (in some respects) the same site design.

Take a look at this video, found on nosh.com, showing that there’s plenty of room for humor (and post production!)

BuySellAds take a similar (though less labor-intensive) humorous video approach to their page.


Search Results and 404 Pages

Your brand new, well designed and useful custom 404 Page may look great and perform perfectly, but it’s exactly the kind of thing you don’t want appearing in your search results. There are two ways of ensuring your 404 Page doesn’t come up in search results:

  • Make sure your web server returns an actual, correct 404 HTTP status code when a missing page is requested, so the search engine will ignore it.
  • Add your 404 page to your robots.txt file.

The second of these two methods can also be used to stop search engines from finding any pages you don’t want them to see – such as your 404 page, your back-end PHP files (such as login functions) and more. Just add their URL to the robots.txt file and upload it to your server:

Disallow: /404.html

Using Your 404 Page

It’s all very well having a nice new custom 404 page that is helpful to your viewers, but it is obviously very important to make sure it is actually used. To make sure your server redirects users to your 404 page (instead of just using the default) you will need to set up your .htaccess file.

Configuring your .htaccess file for custom 404 direction is extremely easy. Firstly, locate the .htaccess file on your server (it should already be there, but if not you can just make a new file with that name) then open it. Add the following line of code:

ErrorDocument 404 /404.php

Make sure the path and file extension coincide with your 404 file. If your file were to be named 404-error.html and was located within an “error” directory, you’d alter the snippet like so:

ErrorDocument 404 /error/404-error.html

Browsers will now be directed to your 404 page in the case of a 404 error. It’s that simple!


Conclusion

So, we now know that instead of the standard, boring and unhelpful browser default 404 page, it’s in our interests to spend time creating our own custom 404 pages. If done properly, they’ll help keep visitors on the site and ultimately reduce bounce rates.


Further Resources

James Duquenoy is Septimus_fossett on Themeforest
Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • http://bestorders.de Alex

    Hello,
    What if I know there is an error, for example if I specifically know that a page doesnt exist (in the index.php).. what to do then best ? redirect to the 404.php or somehow produce an error so the server automatically redirects to the 404.php via the .htaccess?

    It may be a silly question,
    whiterock

  • Leonard Peris

    How come you guys didn’t mention WorkFu’s 404 page? It’s simply awesome. https://workfu.com/404notfound

    • http://www.snaptin.com Ian Yates

      Awesome example Leonard – thanks :)

  • http://croftmedia.co.uk/ Greg Tyler

    This TED talk about 404 pages is quite fun.

    Renny Gleeson: 404, the story of a page not found

  • Hamid

    lol nice artcile Leonard:-)

  • Pingback: Improving 404 Page Design | Shadowtek Hosting and Design Solutions

  • samir

    i had fan and i learnd a lot
    i miss the tutorials series what happend to adi purdila and Ian Yates
    ok Ian Yates i can see your comment above it’s cool to see you around

  • http://www.ionutciursa.com Ionut Ciursa

    Thanks for the tips. I will definitely come back to this article when I redesign my portfolio website.

    I think the 404 page of the Tuts+ website is well designed and inspirational. However, the 404 page of individual Tuts+ websites contains only a link to the homepage and no branding elements whatsoever.

    • http://www.snaptin.com Ian Yates

      I was waiting for someone to spot that! The Tuts+ network is *long* overdue a redesign, but rest assured that it’s coming :)

      • http://www.ionutciursa.com Ionut Ciursa

        After seeing the Tuts+ 404 page, I had to check all the Envato websites, thinking that they would have great designs as well. However, I don’t consider the 404 page a priority and I know you guys have more important stuff to work on.

        I look forward to the new design of the Tuts+ network. Hopefully it will be responsive. I know there was a time when the sidebar of the Tuts+ websites was kind of responsive in order to make room for the content on screens with a smaller resolution.

  • http://www.seominded.nl Albert

    Nice article, importance of 404 pages are often forgotten.

  • http://nmsdvid.com/ David Nemes

    Check out mine – http://nmsdvid.com/404

  • http://www.uckhandla.com uckweb

    Inspirablesss!

  • http://www.scottcarmichael.co.uk Scott

    Its good to see people putting a bit of effort into the design of these pages. CMS’s like WordPress make it very easy to do, I know it can be a bit daunting for some people to do stuff in .htaccess file.

  • http://www.igamesonline.com Mark

    These are some other things I would have mentioned in the article:

    Logging – While these kinds of errors are written to a server log, you may or may not have access to the place that they’re written (particularly with some shared hosting accounts I’ve run across, but even in some large access-controlled corporate environments.). It can be a good idea to log these out somewhere unique, which can only be done with a custom 404 page. For example, I usually send write mine into a SQL database with a time stamp, the user, the requested user page, the page (or site) they came from, and (depending on the level of control I have and I need) sometimes even check to see the next action of the user after generating an error. This can help with predicting what pages they may have been looking for for future users, and if you happen to know the answer your custom page can even include a script for a simple redirect. Doing analysis on that data can help you locate Power Users for testing or even users who are just prone to making mistakes (to maybe offer some extra Customer Service help to) and once even helped us identify some fraudulent accounts on a server I support.

    Dynamic Pages – Beyond 404 pages, there are 403s, 401s, all the 500s, and 301 that you might want to make use of. Developing a custom page that accepts some input and displays text accordingly can be a great way to stretch the mileage of your 404 page to handle these other errors in a handy and custom manner, and has the benefit of making your site look professional. Most of my work never serves up a generic page, it’s got a custom page for just about every error you can generate on it and it’s all handled on the back end. This is a great way to show a potential customer that you know your business and have thought about all the aspects of it. I have a habit, when reviewing resumes, to pull up websites and try to find an error page just to see if the developer anticipated a need for it, planning ahead is important!

    Simple Designs – One argument for simple designs, despite all the customization and logging up there, is the desire to have error pages return fast. It’s bad enough that your user is hitting an error page, but if he’s got to wait for a video or giant JPEG file to load the odds are he’s going to be even less happy to get that error to begin with, for this reason I tend to avoid images on most of my error pages but that’s personal choice.

    Test Plan – It’s a pretty easy thing to overlook, but it’s very important to test your 404 (and other) pages. We had a developer write a link into the config file for a 404 page, but he pasted his recent URL for search results (he had been attempted to google himself) into the link instead. Customer Service was not very happy when we started getting flooded with calls and they had to explain what had happened.

    Resource Independent – It’s also important to make sure that your error page isn’t going to cause an error. We had a developer move the folder that contained the 404 error file in it, with predictable results. This goes along with Testing and with Simple Designs above, but it’s important to make sure that your error page can be loaded up even if say, the Database you write your log file into is down.

    Hope these help someone out there, just wanted to share my Two (or five) ‘Sense’!

  • Pingback: Improving 404 Page Design | Webdesigntuts+ » Web Design

  • http://utopiaweb.fr/ Baptiste

    Check out our 404 page, with a meme it’s easy to design something fun :
    http://utopiaweb.fr/404
    We also created a page for the 418 code ! http://utopiaweb.fr/418

  • Pingback: What To Expect When You’re Expecting: 10 Essentials To Check Before Your Website Launch | Pixel Blog

  • Pingback: بهینه سازی صفحه خطای 404 | وبلاگ داتیس دیزاین

  • http://www.voyagewave.com haab

    Nice Article

  • http://www.angaling.com jett

    Nice 404 article. Thank you for sharing this it was useful

  • Rumman

    Silly question guys but how exactly do you create/setup a 404 page?

  • http://sazuraweb.com Sazuraweb

    Hei, Check out 404 page http://sazuraweb.com/404

  • http://www.furiousb.com BobK

    I was definitely using this article for guidance and inspiration when I remade our 404 a couple weeks ago here: http://www.thelifeguardstore.com/productcart/pc/404.asp

    Thanks!

  • Borys

    Do not redirect user to a 404 page! Only display the message!

    I hate when I land on /404.html because of a typo in /insanely-long-web-address-prone-to-mistakes.html. Now try to guess what went wrong.

  • Mike

    There’s some funny 404s on this list. I particularly like #s 3 and 4.

    None of them beat this 404 though: http://www.watchco.com/x/
    A $10 discount for finding a 404 on this site, can you do better than that?!?

    I wonder if Watchco.com will be starting a trend?

  • http://www.themeforest.net/user/septimus_fossett?ref=septimus_fossett James Duquenoy

    Thanks for all the great feedback, and some other great examples of 404 pages! Glad to have helped with those of you who have redesigned your 404 pages inspired by this article!

  • Pingback: Flywheel - Elegant WordPress hosting & management – Built for designers

  • Pingback: Updating your website? How to communicate changes to your partners | educationmarketer's Blog

  • jaystrab
  • Pingback: Twitter Link Roundup #132 – Small Business, Social Media, Design, Copywriting, Marketing And More « crowdSPRING Blog

  • ZeroMile

    Good Aim. Nice article about 404 page.

  • Pingback: No Forced Ads Free Hosting. Things You Need to Know

  • Pingback: Lesson Twelve Reflextion | Lyle Palagar

  • starfall zone

    love all error404, love to have it on sites.

  • Joedan

    really bad dident help me at the least! thanks ! joe perriam