301 redirect siteTo redirect all pages from http://www.olddomain.com to http://www.newdomain.com in the domain root of your old domain create a .htaccess file and paste the following code, changing the domain name:

 

Options +FollowSymLinks

RewriteEngine On

RewriteRule (.*) http://www.newdomainname.com/$1 [R=301,L]

Obviously this doesn't have to be .com, it can be anything. This makes the old pages go to the same address at the new domain, eg:

http://www.olddomain.com/folder/subfolder/page

Would be sent to

http://www.newdomain.com/folder/subfolder/page

I find it useful when a development site gets indexed (highly likely when you use something like a .co.cc name).

If the development pages get indexed, when the site moves and I redirect all the pages, google has nearly all of the new site indexed a few days after it goes live.

Category: General

Newsletter Signup

Latest Posts

Google+ Timeline Feed for your Website Google+ Timeline Feed for your Website 2012-05-11 - I was asked earlier today to create a Google+ widget for a website to replace a twitt... More detail
Run Facebook Messenger on Windows Vista Run Facebook Messenger on Windows Vista 2012-04-19 - Facebook has just released it's new messenger for windows but it only runs on Windo... More detail
Translate K2store Product Attributes with Joomfish Translate K2store Product Attributes with Joomfish 2011-11-03 - If you have a K2store and your site is in multiple languages, you might have found th... More detail
French Translations for K2store French Translations for K2store 2011-11-02 - I have been working recently with the K2 component/plugin K2store. As a simple sho... More detail
How I Upgraded to Joomla 1.7 How I Upgraded to Joomla 1.7 2011-09-25 - Inspired by Robert Vining over at www.joomstew.com and the fact that I am building mo... More detail

Twitter Stuff