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.
















Tuesday, December 23rd, 2008 at 10:49 am
I find this sort of solution confusing to users, who are being sent to a page they didn’t request and who aren’t being told how they got there. A better idea is to write a custom 404 page that gives the browser some options. Using WP Stats and the WP Stats Helper plugin, you can easily make a dynamic, custom 404 page that helps lost users make their way back into your website.
Example: http://silverpenpub.net/404
There are also a variety of plugins for WordPress to create custom 404s, I just never found these satisfactory.
Trackbacks/Pingbacks
Leave A Comment