Better handling of 404 pages using Google

Seldom it happens that you get few incoming links typed wrong, or you delete/move some of your posts. The result will be a 404 page not found error page displayed to your visitors coming for the old link.

Luckily WordPress has a custom page for handling 404 errors, in the form of 404.php template in your theme. However the default page in many themes leaves much to be desired.

You can easily enhance this page by adding Google's 404 enhancer script, available from Google Webmaster Tools -> Tools -> Enhance 404 pages. To use it, simply copy the script anywhere in your 404 page template body.

As a test visit this URL http://www.prelovac.com/vladimir/WordPress-plugins/-wall. It should be pointing to my WP Wall plugin but the linking site got it wrong.

The new enhanced 404 page will provide the user with much more options, like going to the proper link or searching the site for keywords (Google extracts them automatically).

I have included these changes in the new release of Amazig Grace/Blue Grace themes which you can download here.

Useful links on Google:

See also:


Posted in: SEO
TAGS:, , , , , , , , , , , , , , ,
leave a comment.

8 Comments

  1. Uberpix uberpix.net
    Jun 13th, 2010

    This plugin works great! Have been using it for some time now.

  2. Rajandran marketcalls.in
    Feb 14th, 2010

    Really, Now 404 page will be a better one.
    Thanks for bring it up

  3. Mensah
    Oct 27th, 2009

    I recommend Smart 404, http://michael.tyson.id.au/wordpress/plugins/smart-404 . I moved from Joomla! to WordPress and I had a bunch of 404 errors. This plugin used keywords in the url to redirect the visitors to the right page.

    • Vladimir prelovac.com
      Oct 28th, 2009

      Yeah not a bad plugin, thanks for bringing it up

  4. Mankosas izitips.com
    Mar 30th, 2009

    What if there's no 404.php in my theme?

  5. Mankosas izitips.com
    Feb 24th, 2009

    As always, very interesting to read your SEO section. This is a must tweak for every blog.

  6. Chung Bey Luen bloghighlight.com
    Feb 23rd, 2009

    Yes, this is better than Thesis Theme default 404 page, but you can easily customize the look and content of the 404 page in Thesis.

  7. Gloson glosonblog.com
    Feb 23rd, 2009

    Wow! This is better than thesis's default 404 page!

Have your say

Your email is never published nor shared. Required fields are marked *

*
*

Subscribe without commenting

About Vladimir

vladimir prelovac Hi! My name is Vladimir Prelovac. I am a computer engineer by profession and an adventurer by state of mind.

"I would love to change the world, I just don't have the source code yet."

Books by Vladimir

WordPress Plugin Devleopment Book WordPress Plugin Development: Beginner's Guide

Published by Packt Publishing, available online through Amazon. Click the image for more information.

Consulting Services

Professional WordPress Services, including custom developed plugins and themes

Expert on-site WordPress SEO consulting and an 'out-of-the-box thinking' approach to problems