Configure htaccess file to avoid duplicate content penalty from Google for Cpanel parked domains

Posted By: KP On June 15, 2009 Under Earn Money Online, Google, Internet, SEO Optimize Tips, Web Hosting, Web Master Categories

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



Share with Friends ( Sharing is Caring! )


Subscribe For E-mail Notification Of Article Updates

Enter your email address:

NOTICE:
DO NOT FORGET TO CLICK ON THE VERIFICATION LINK AFTER SUBSCRIBING,THE VERIFICATION MAIL WILL BE SENT TO YOU FROM "FeedBurner Email Subscriptions".
( What is this? Why I need to do this?)

Related Posts

One response. Wanna say something?

  1. Egon
    Jun 26, 2009 at 06:38:50
    #1

    This article helped me to set up 301 redirecting. Gracias!

    [Reply]

Post a Comment

OR