neverblueads logo MarketLeverage logo Hydra Network logo neverblueads logo
logo  

A discussion of earning with the Best Affiliate Programs, SEO, Wordpress Blogging and General Motivational Ideas for Internet Publishers and Affiliate Marketers.


feedburner

Blog Icon Avoiding 404 Errors using 301 Redirects

Posted in Search Engine Optimization by Dave on October 3rd, 2007

404 ErrorOne of the simplest things most webmasters and novice SEO’s aren’t aware of is that search engine bots don’t like (Page not Found) . if you’re using the Google Webmaster Tools, you might see 404 errors for pages that don’t exist on your site. This can happen for a variety of reasons including somebody linking to you incorrectly or if you bought a domain that had been previously owned and the former owner had links going into pages that no longer exist on your site. Regardless of the how’s or why’s here’s a quick and simple remedy to redirect all of your error pages to a desired landing page and not suffer any search engine indexing consequences. It can also help you retain any existing backlinks that are incorrectly linked.

First, you will need to create a custom 404 error page and tell your website that it exists. To do this you will need to edit your .htaccess file and insert the following line of code:

ErrorDocument 404 /404.php

This will redirect all 404 errors to a page in your website root directory called “404.php”. You can name it anything you want but *do not* just simply point it at an existing page such as your index.html or index.php file. The reason why is that it will be seen as “duplicate content” if you do not redirect it properly. Once you have that done, you will need to create your 404.php error file and insert the following code:

<?php
header(”HTTP/1.1 301 Moved Permanently”);
header(”Location: http://www.mysite.com/mypage.php”);
exit();
?>

You can redirect the errors to any page you want and using the “” will assure you will not be subject to duplicate content penalties. This simple solution is one of the first things I do when I bring up a new site. I highly recommend all webmasters learn to use this trick and enjoy !!



Like this post? Subscribe to AffiliateBestPrograms RSS feed and never miss a post !!


del.icio.us:Avoiding 404 Errors using 301 Redirects newsvine:Avoiding 404 Errors using 301 Redirects furl:Avoiding 404 Errors using 301 Redirects reddit:Avoiding 404 Errors using 301 Redirects blogmarks:Avoiding 404 Errors using 301 Redirects Y!:Avoiding 404 Errors using 301 Redirects smarking:Avoiding 404 Errors using 301 Redirects magnolia:Avoiding 404 Errors using 301 Redirects segnalo:Avoiding 404 Errors using 301 Redirects gifttagging:Avoiding 404 Errors using 301 Redirects




Leave a Reply



This is a dofollow blog, however, if you wish to have your comment approved, please use a human name and not something like "free hosting" or "adsense help" in the name field. I will no longer approve comments that are made solely for the purpose of building backlinks at my expense. ~Thanks Dave.










Categories
Archives

Coming Soon: Affiliate Traffic Generator | Affiliate Directory | Affiliate Software | Affiliate Tools

Resdaz Media
AffiliateBestPrograms © 2007-20009 Resdaz Media
All Rights Reserved
Other Resdaz Media Network Sites:
Add to Technorati Favorites

BRDTracker BlogsByCategory.com
Find the best blogs at Blogs.com. feeds4all

Blogoculars Blog Directory