redirect one domain to another via htaccess

So you bought another domain name that matches one you currently have.  You shouldn’t upload the same content else google will penalize you for duplicate content.  So, what to do?

The polite way to do this for your viewers, google, and ease of you updating multiple domains is to use a 301 redirect.

Here is how to do so:

Example domain: (we want to redirect that to

– If you haven’t added the domain name to your m3control panel, please do so.

– Make a backup of your current .htaccess of the domain you want to REDIRECTED, not your final domain name.  In this case, we want to edit the .htaccess file of

Now, edit the .htaccess if it was a domain in use, or create a new .htaccess file:
COPY AFTER THE START AND BEFORE THE FINISH. Copy and paste the following:

Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*)$$1 [R=301,L]

Save the file and upload it to the new site’s web directory like so:

This will redirect all page requests to as shown.

Happy redirecting! – Virtual Dedicated Servers