I recently needed to change the domain of our Eagle Crest Vacation Rental website from www.EagleCrestGetaway.com to www.CentralOregonGetaway.com. I wanted to make sure that I did it in the most “search engine friendly” manner possible, every page matched up from one site to another, and it didn’t take forever. I decided to use the .htaccess file to redirect all the files from one domain to another.

Both of the websites were hosted on GoDaddy shared hosting plans on Linux operating systems. Here is how you create and then use the .htaccess file to forward all the pages in a domain to another.

1) Create a text file with the following text on a single line:

Redirect 301 / http://www.NewDomainName.com/

NOTE: Make sure you use a program like text edit or notepad and save the file in plain text formatting. Also make sure you turn line wrapping etc off.

2) Save the file as htaccess.txt (you will change the name later I promise)

3) Upload that file to the home directory of your web server using your favorite FTP program

4) Change the permissions of the file to 644 so that the server can write to it but the file is not accessible to the browser.

5) Change the name of the htaccess.txt file to .htaccess

6) Wait for the magic to happen. Depending on the configuration of your server it may take 15 minutes or so for any .htaccess file changes to propagate.

GoDaddy shared hosting plans DO allow .htaccess commands so performing a 301 redirect as I did with our Eagle Crest site is your best bet in both time of execution and effectiveness.

Technorati Tags: , , ,

del.icio.us:.htaccess 301 Redirect on GoDaddy Shared Hosting digg:.htaccess 301 Redirect on GoDaddy Shared Hosting spurl:.htaccess 301 Redirect on GoDaddy Shared Hosting wists:.htaccess 301 Redirect on GoDaddy Shared Hosting simpy:.htaccess 301 Redirect on GoDaddy Shared Hosting newsvine:.htaccess 301 Redirect on GoDaddy Shared Hosting blinklist:.htaccess 301 Redirect on GoDaddy Shared Hosting furl:.htaccess 301 Redirect on GoDaddy Shared Hosting reddit:.htaccess 301 Redirect on GoDaddy Shared Hosting fark:.htaccess 301 Redirect on GoDaddy Shared Hosting blogmarks:.htaccess 301 Redirect on GoDaddy Shared Hosting Y!:.htaccess 301 Redirect on GoDaddy Shared Hosting smarking:.htaccess 301 Redirect on GoDaddy Shared Hosting magnolia:.htaccess 301 Redirect on GoDaddy Shared Hosting segnalo:.htaccess 301 Redirect on GoDaddy Shared Hosting