If you are having more than one different domain names for a single site and parking them using Cpanel, be sure to update your .htaccess file to avoid penalized from search engine for duplicate content.
If you have example.com as main domain and another one parked from Cpanel say example1.com .Google like search engines will take both the domain as a different site and will down your rank for duplicate content penalty. Though the both sites are same we know that.
For this you need to write your .htaccess file in your root folder(where you place your index.html file)
in below htaccess example we will 301 redirect all traffic coming to example1.com to example.com
1. Add below lines once
Options +FollowSymlinks
RewriteEngine on
2. Add below lines once for each parked domain,for 3 domains add it three times changing domain name.Don’t change anything expect domain name.Don’t include www in domain name
RewriteCond %{HTTP_HOST} ^example1.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
Also this code will prefer www instead of site without www,which is more recommended.
Also you should give 301 redirect using .htaccess file to all traffic coming to your index file because search engines will count example.com and example.com/index.htm as different files.
Add below code to .htaccess do so
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)index\.(html?|php|asp|cfm)\ HTTP/
RewriteRule ^(.*)index\.(html?|php|asp|cfm)$ http://www.example.com/$1 [R=301,L]
You can use above techniques to domain parked with various TLDs too,those you purchased to ensure surety of unique domain name.For example you can redirect .NET domain to .Com or .Org domain to your .Com domain
Jun 26, 2009 at 06:38:50
This article helped me to set up 301 redirecting. Gracias!
[Reply]