What To Do With Your 404 Page

January 25th, 2007 by Richard Cockrum

  Synchronicity works. I frequent Open Comment Night at Liz Strauss’ Successful Blog on Tuesday nights.  While we talk, we often visit the blogs of participants to see who we’re  talking with. This past Tuesday, Brandon Wood was there. While I was at  Brandon’s blog I saw a post on Building  a better 404 page for Wordpress.In the post Brandon talked about  some code that Doug Karr had written to actually do something useful  with the 404 page on a Wordpress blog.

I thought, “I use Wordpress. Useful is good.“, so I went  over to Doug’s post, Wordpress  404: Page Not Found? Try these links…

One of the common pieces of advice for a blog is to make your 404 page  (you know, the one that pops up when a post can’t be found on your blog)  useful. Most of us ignore this piece of advice and just leave it the way  it came out of the box with our theme. Some of us say “Whoops!  Sorry, I lost what you were looking for.” Doug Karr actually took  the advice to heart and wrote a script that will list related posts on  your blog if the post that was being looked for isn’t found. Pop on  over, download the code, and copy it into your 404 page. Even 404 will  earn its keep now!

Thanks for the pointer, Brandon! And thank you for the code, Doug!

Popularity: 13% [?]

7 Responses to “What To Do With Your 404 Page”

  1. Brandon Wood Says:

    Hey, thanks for the link Rick. I’m glad you found my post helpful!

  2. Rick Cockrum Says:

    It was very helpful, Brandon. I can program in C++, but know little about PHP. I’ve been wanting to do something with my 404 page for a long time. This pointer to Doug’s post was just the ticket.

  3. Steve Johnson Says:

    Hey Rick — thanks for writing about that. I put it into use straightaway! I also have a little add-on that I’ve used for a couple of years now that emails me with details when someone hits a 404. It’s useful for catching bad links and also to set up redirects for old page links that may be floating around in the netosphere.

  4. Rick Cockrum Says:

    Hi Steve,

    I’m glad it’s something you could use. I’m glad it’s something Doug came up with and Brandon led me to.

    I would like to hear some more about how you do the redirect when someone hits an old page link. Like I said in my comment to Brandon, I can do desktop programming, but can barely hack my way around web programming. If you could do a post about it,or comment on it, or send me an email, I would really appreciate it.

  5. Michael Cockrum Says:

    I always think it’s awesome when someone takes the time to actually do things that most other people COMPLETELY leave static. I’m sure this is helpful to a lot of Wordpress users!

  6. Rick Cockrum Says:

    Hi Michael,

    Thanks for stopping in. Most of us don’t really know what constructive thing to do with our 404 page, or if we know what we want to do, don’t know how to do it. Doug’s code give us the opportunity. It’s a great idea for a Wordpress site.

  7. Creating Better Error Pages. - Healthy WebDesign - Developing and Building Successful Websites for Independent Professionals Says:

    […] Using WordPress, Rick Cockrum takes another approach. He sites Brandon Wood’s approach from Building a Better 404 Page for WordPress. Brandon added automatic search results to his 404 page, using the keywords from the broken URL. With a small script from Doug Karr, Brandon was off and running. […]

Leave a Reply