February
14

How To Redirect an Entire Website With a 301 Redirect Using .htaccess

by: SEOspring at 2:46 am on Thursday, February 14, 2008 → 0 Comments - Leave Yours!
del.icio.us Digg Reddit Ask Google StumbleUpon Technorati Windows Live Yahoo!

If you haven’t already, please read my introduction to 301 redirects post for a full understanding of the 301 redirect using your .htaccess file.

Redirecting Entire Websites:

redirect 301 / http://www.yoursite.com/

In the above example(s), the first “/” indicates that everything from the root level of the site down (to the folder name if specified) should be redirected. This is an excellent remedy for ensuring that no traffic or rankings are lost if you have to change your domain name.

Search engine spiders & 301 redirects

The 301 redirect is the safest way to preserve your search engine rankings. On it’s next visit, the search engine spider (a.k.a.: robot) will obey the new rule in your .htaccess file. The spider doesn’t actually read the .htaccess file, but recognizes and follows the instructions from the server.

Usually, in the next search engine update the old file name and path should replaced with the new one. Sometimes you may see alternating old/new file names during an update transition period, along with possible fluctuations in rankings as things settle. This is typical of search engine updates and may take a few weeks for things to settle. You should be aware that any change you make has risks - whether it’s altering page text, moving or renaming pages, or simply changing domain names. Search engine rules change as often as the weather, so stay updated in case the 301 redirect becomes a liability! (Join our feed, hint, hint!)

Changing old domain names - be patient.

When changing domain names and using a 301 redirect, it’s advisable to leave the old domain name and files in place for a few weeks to give the search engines time to index your changes.

Also, don’t forget to notify any website(s) linking to you of the domain name change as soon as possible. Once you remove the old domain name, any links pointing to your old site will have no effect on the ranking of your new site - so get ‘em changed over!!

Read more about How To Redirect an Entire Folder or Directory With a 301 Redirect Using .htaccess

Spread The Link Love, Baby...
If you found this page useful, please link to it. Simply copy and paste the page URL or the code below into your website or blog. It will look like this:
How To Redirect an Entire Website With a 301 Redirect Using .htaccess

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image