While browsing my feeds, I noticed an interesting post over at JohnCow explaining how to make money online with missing pages. The author noticed that a lot of traffic was ending up on his error page (almost 26,000 people to be exact) and felt that there had to be a better way to use this page so there wasn’t so much wasted traffic.

In the authors example, the idea is to redirect all traffic that hits his 404 page to his “make money” page, which contains affiliate links and other ways to get paid. While this example probably wouldn’t apply to most of us, I do think that it might be a good idea to redirect these bloggers to a more important page on your blog, such as your homepage.

In order to do so, you simply need to do a quick edit to your 404.php page (which most themes should have). Before attempting, make sure you have a backup copy of your 404.php page in case something goes wrong. You’ll want to add this code to the top of your 404.php page:

<?php
header ('Location: http://yourhomepageurl/' );
?>

You’ll of course want to manually enter your homepage URL. If you have a favorite post you’d like to promote, you could instead add the URL to that post.

If you’d prefer not to redirect your 404 page, you can always customize it to help the potential reader to find what they were looking for.

Kyle Eslick is WordPress enthusiast who took his passion for WordPress to the next level in 2007 by launching WPHacks.com as a place to share hacks, tutorials, etc. Connect with Kyle on Twitter or Google+!