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:


Suggested reading:


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

Comments:

8 Comments

  1. Uberpix
    Jun 13th, 2010

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

  2. Rajandran
    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
      Oct 28th, 2009

      Yeah not a bad plugin, thanks for bringing it up

  4. Mankosas
    Mar 30th, 2009

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

  5. Mankosas
    Feb 24th, 2009

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

  6. Chung Bey Luen
    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
    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 prelovac Vladimir Prelovac is CEO of Prelovac Media, a computer engineer by profession and an adventurer by state of mind. more +


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

Services

Manage multiple WordPress sites

Built for WordPress enthusiasts, ManageWP helps you manage all your WordPress sites from one central location.

Books

WordPress Plugin Devleopment Book Read my book WordPress Plugin Development: Beginner's Guide

Published by Packt Publishing, available online through Amazon.