IP Address Canonicalization – avoiding duplicate content

Handle IP Address Canonicalization problems and avoid duplicate content issue in Google by making this simple addition to your .htaccess file. You can edit your .htaccess file if you have WordPress SEO by Yoast installed, just edit and save.

If you have a dedicated IP address there is probably not going to be a duplicate issue, however if other sites are on the same IP address, such as shared hosting, then the site could get indexed by Google, and come up as duplicate.

In any case it wont hurt to make this change to help you sleep at night while the bot are crawling your site… 😀

RewriteEngine on
 RewriteCond %{HTTP_HOST} ^domain\.com [OR]
 RewriteCond %{HTTP_HOST} ^123\.123\.123\.123
 RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
 RewriteCond %{THE_REQUEST} ^.*/index.html
 RewriteRule ^(.*)index.php$ http://www.domain.com/$1 [R=301,L]
Please find more details on the Moz site: 
http://moz.com/community/q/how-to-do-ip-canonicalization
Advertisements

4 thoughts on “IP Address Canonicalization – avoiding duplicate content

  1. Good day! I know this is kind of off topic but I was wondering which
    blog platform are you using for this site? I’m getting sick and tired
    of WordPress because I’ve had problems with hackers
    and I’m looking at options for another platform.
    I would be fantastic if you could point me in the direction of
    a good platform.

  2. Good day! Do you know if they make any plugins to assist with SEO?
    I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very
    good gains. If you know of any please share. Thank you!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s