Who Needs a Custom 404 Page? You Do!
As I read some of my favorite Travel Blogs, one of the things I’ve noticed is that a lot of travel bloggers don’t realize that they can (and should) customize their default “404″ page that comes with nearly every WordPress Theme. Worse though, is that some bloggers don’t have a 404 Page at all, either because they aren’t using WordPress (their site is built using straight HTML or some other platform) and didn’t realize that they should have one, or because their Theme didn’t include one.
A quick primer for anyone who is not familiar with what a “404 page” is: It’s the page that your browser displays when you click on a broken link. Often using words like “File Not Found”, a 404 error is returned whenever your website cannot serve up the page that was requested. A broken link can be on your site or on some other site, or even at a search engine like Google. Typically this happens when a page that was previously linked to gets moved or renamed, or in some cases if the original link was just not correct, such as might happen if there was a typo in the URL.
So why should you have your own 404 Page? Simple – because if you don’t, then your site host or domain registrar can display one of their 404 pages instead, often with links or ads that can lead site visitors away from your site, possibly never to return. Site visitors get frustrated when they don’t arrive where they expected to, and a missing 404 Page means that they have no option but to go elsewhere or “back” to where they came from — meaning that you miss out on potential readers as few people will make the effort to figure out why the link didn’t work.
Another big mistake that some website owners make is to have a generic 404 Page that sometimes has nothing in common with the rest of their site, leaving out important features such as Navigation (your menu) and a Search box (so visitors can find what they came looking for)…..often this is because webmasters operate under the mistaken belief that THEY will never suffer from broken links, thus no one should ever actually see their 404 Page. Although this is common thinking, it’s wrong. You cannot control how other websites link TO you, and may be unaware of some (or many) of your inbound links – thus if someone has linked to you with a typographical error in the URL, and you don’t know about it, someone clicking on that link will get a 404. Likewise if you’ve changed a URL by renaming a page or post, don’t think you have it covered by fixing any links on YOUR site, because someone who has already bookmarked the old URL (or a search engine that’s already indexed it) will have a broken link, creating the dreaded 404.
So what makes for a GOOD 404 Page? First, make sure that you have one. The easy way to check to see if you have one is to intentionally type a bad URL or filename into your browser address bar following your domain name, and see what appears — if your Theme has a 404.php file, you’ll see a page that should look like your website’s overall Theme and says something like “Error 404 – Not Found” and possibly offering a search box. If you have a page like that, then it’s a good start, but it’s not good enough – that’s just the bare minimum.
To be adequate a 404 Page MUST have:
- The same navigation (menu) as the rest of your site, so that the person who arrived at your site via a broken link can still get to your home page or archives and browse around in hopes of finding the right page;
- A Search Box, so that they can try searching your site for whatever page they were looking for (in case it’s not immediately apparent in your navigation)
To be good a 404 Page SHOULD ALSO have:
- A way to contact you to report the broken link (you do want to know about it so that you can possibly get it fixed) – you’ll get a better response rate with an email link than with a contact page link;
- A link to your Site Map to help expedite finding the page or post they were looking for;
- An explanation of what’s happened with enough of your charming personality and/or humor to entice the person to stay on your site long enough to find what they came for, let you know about the broken link, possibly read other posts and pages, and maybe sign up for your newsletter, follow you on Twitter, Digg a few articldes, and refer you to all of their friends. It takes a lot of “good will” to get even a small fraction of that, so you need to make an effort to engender that type of good will.
TIP: If using an email address so visitors can notify you of broken links (instead of a link to your contact page form), be sure to use a “throwaway” address (that is, one that you can discard and replace if it garners too much spam), rather than your primary address.
To help you get started thinking creatively about your 404 Page, here are a few examples of some very clever 404 Pages – they may not have all the “must haves” (and I certainly don’t mean them to be literal suggestions of “you should do this”), but they tickle your sense of humor enough that you’d likely stick around if you’d landed there accidentally:
Of course, I’d be remiss if I didn’t show you our own 404 Page, so here it is: http://www.travel-writers-exchange.com/404
Ready to customize your 404 Page? BE SURE to backup your 404.php file before you try modifying it, then when logged into WordPress’ admin interface, click on ‘Appearance’ then ‘Editor’ then ’404 Template (404.php). Be careful to change only the text and add images if you like — don’t change or erase any HTML, CSS, or PHP unless you’re comfortable doing so, and post in the Forum if you need additional help.
What else can you do? Use a plugin like 404Notifier so that you can find what is causing 404 errors and possibly fix them. You can’t prevent them entirely, but the fewer the better.