How To Fix Broken Links and 404 Error Page Redirects in Wordpress

Wordpress now has the ability to redirect old article links and titles to the new correct page, provided you’re using the latest version of Wordpress, but what about 404 pages?
When a link is truly broken, and Wordpress can’t already fix it automatically, you might as well just deal with the visit to your site as a 404 error page. There are plu gins out there that require manual input to redirect traffic, but is the broken link getting so much traffic that you need to go to all that trouble rather than adding content to your site. The article location will be re index in the search engines anyway, and you shouldn’t spend all your time being a perfectionist when it isn’t going to get you much of a ROI.
Since the visitor will land on a 404 error page that doesn’t monetize, or provide anything of interest for the visitor, it seems like a good idea to redirect, or forward, the visitor to the site’s homepage where they might find something of interest.
Wordpress uses a standard 404.php landing page for every theme. The code usually looks something like this:
Latest comments by:
- Janet
Thanks so much for this code! HELPS A LOT!
© Copyright Nerd Grind 2009 - 2010. All rights reserved.
