Wilmott-IT Services - Central Coast based Business IT Systems Management.
AusWebHost - Australia Based Web Hosting Provider. Offering Web Hosting, Dedicated Servers and other Hosted Services including Hosted Email
myTravelBlog - Create your own travel blog for free today! Link to Facebook to automatically update your status and photos everytime you submit a story!

Saturday, January 29, 2011

Redirect one domain to another using Apache http htaccess file

Basically I was looking for the code needed to redirect one domain to another.

I used this and thought I would put it up here in case someone else has the same requirement


RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain1.com$
RewriteRule ^(.*)$ http://www.domain2.com.au/$1  [R=301,L]

No comments:

Engadget

Hack a Day

Slashdot

IntoMobile » Android

Techmeme

Koen's blog

Interesting Blogs