Domain redirect

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: m3server.it (we want to redirect that to m3server.com)

- 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 m3server.it.

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:

#START
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.m3server.com$
RewriteRule ^(.*)$ http://www.m3server.com/$1 [R=301,L]
#FINISH
Save the file and upload it to the new site’s web directory like so:

m3server.com/.htaccess

This will redirect all page requests to m3server.com as shown.

Happy redirecting!

Keywords: Redirect, domain, htaccess, start, finish
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

restrict by IP or password

I find myself tired of having to answer the pop up authentication box to view my control panel...

rewrite base

Top directories can break functionality on sub directories. Case in point:Scenario: WordPress...

rewrite non SSL to SSL

Want to force users to use SSL on your site?Add this code to the top of your .htaccess file, edit...

Traffic source redirect

Need to redirect source traffic to another domain?  Well, if you can’t modify the link...

Restrict access by IP

WARNING:  Backup your current .htaccess file if you have one so you can quickly revert in...

Powered by WHMCompleteSolution