Doing the 404 Two Step

Doing the 404 Two Step

Doing the 404 Two Step

By John Jantsch

Dead end

DeaPeaJay via Flickr

Broken links and dead ends on your website are bad form. They cost you potential customers, erode a little trust and, if left unattended, can tweak search engines enough to downgrade your site a bit.

Hey I’m not scolding, this is one of those thankless little tasks that I’m just a guilty as the next for ignoring. Of course a thorough designer/programmer will check these out and make sure that your site doesn’t have any broken links, but if you’re like me, once you start tinkering and changing things over time, some loose ends seem to occur.

There are two things that you should do to a) reduce the chance for broken links and b) make the experience a little less harsh when they do occur.

1) Get yourself to the Google Webmaster Central and register your site so you can use the tools – specifically in this case, the broken links tool. Google shows pages that aren’t finding and helps you track down broken links and dead ends. You’ll also get some other great suggestions like pages with missing tittle tags. This is a must place to hang out!

2) Create a custom 404 page – this is the error page that you get when someone tries to visit a broken link. This page is also shown when someone just mistypes a URL to your site as well. The standard issue error page says something like – the page you are looking for can’t be found. That’s not very helpful really, now is it. Instead your page should offer some suggestions such as a search tool, list of most visited links and maybe even an HTML sitemap so they can find what they are looking for.

Most Wordspress themes these days have a 404 page as part of the theme template and it’s pretty simple to edit this with a little more user friendly content. You might also check out 8 WordPress 404 Error Plugins.

You can see a very simple example of my custom 404 here

The simplest way to create a custom error or 404 page on a static website is through the .htaccess file – this is a file that is used to give the server lots of commands and it can be edited as a text file. To create a custom error page you must first create the html page you want people to see – something like custom404.html and fill it with things like a search box, popular links and even a s link to your HTML sitemap (One note, any links that you add to this page should be full link and not relative links like /custom404.html as errors come from somewhere other than your root, like a CGI bin, and you don’t want to confuse the server.)

The next step is to add this line to the .htaccess file – ErrorDocument 404 /custom404.html – this tells the server to show this page whenever there is an error.

Simple stuff, but just a bit of necessary maintenance.

Order your copy of
The Self-Reliant Entrepreneur

by John Jantsch

“A book that deserves a spot in every entrepreneur’s morning routine.”
—Ryan Holiday, #1 Bestselling Author of The Daily Stoic and The Obstacle is the Way

Important KPIs for Each Phase of the Customer Journey
The customer journey is often a long and winding road. And that means it can be difficult to track your business’s effectiveness at each phase of the journey. The easiest way to gain greater clarity around your customer journey, and to identify strong points and weak spots, is to pinpoint and evaluate key performance indicators […]
The Role of Your Website in Guiding the Customer Journey
Today’s customer journey is more complex than ever. From social media to paid search to offline marketing, there are dozens of ways someone can discover your company. The main role of your website in this twisting journey is to be a solid central point. While prospects may discover your brand anywhere, you want to be […]

Subscribe to the Duct Tape Marketing Podcast

If you know your small business needs marketing, but don’t have the time or resources, look no further. The Duct Tape Marketing podcast covers everything from earning referrals to managing time and being more productive.


Get the guide to growing your small business

In the 7 Steps to small business marketing success you'll learn:

  • check
    Why strategy must come before tactics
  • check
    Why and what customers really buy
  • How to make Google your new best friend
  • How to install an integrated marketing system