Techie Weblog

Web Hosting & Network Security Guide

HostGator Web Hosting

How to Fix IP Canonicalization Problem

If you like the post, Please Share


How to Fix IP Canonicalization Problem

How to Fix IP Canonicalization Problem

What is IP Canonicalization.

How to Fix IP Canonicalization Problem

How to Fix IP Canonicalization Problem

Canonicalization means how a website can use different URLs for the same webpage. For example; every website resolve to a particular IP address by DNS Server of the hosting machine. It means, the website can be accessed via its domain name and by the IP address as well. When your site’s IP (Example, )does not redirect to your site’s domain name, then the canonicalization problem occurs. This could cause duplicate content problems if a search engine indexes your site under both its IP and domain name. So IP Canonicalization is a serious thing to deal properly in SEO point of view. IP canonicalization saves your website to less the chances of duplicate content.

How to Fix IP Canonicalization Problem

The main objective of the IP canonicalization is to redirect the WebPages which are labeled as the duplicate content. In order to handle this situation you must consider using a 301 re-write rule in your .htaccess file so that your site’s IP points to your domain name. It means that IP Canonicalization can be fixed using mod_rewrite module and .htaccess. If your site is running on apache server, you could put these lines in your .htaccess under <IfModule mod_rewrite.c>:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^XXX\.XXX\.XXX\.XXX
RewriteRule (.*)$1 [R=301,L]

Note that you must proper format the first line using your IP (replace X characters with proper digits from your IP) and the second line using your domain name. After writing the code, you test this by typing the domain name and then typing the IP Address. Now both of them should show the same webpage. Now search engine will not mistakenly label your website as duplicate content.

***How to Fix IP Canonicalization Problem***

Updated: January 8, 2016 — 4:15 pm

The Author

Sukanta Dutta

The author is writing technical blog for last few years. He shares his knowledge on Computer Networks, Database Technologies, Security Aspects of Network and Database etc. He also likes to hear from the reader of this blog to learn more, so he welcomes guest writing for this blog.

Leave a Reply

Your email address will not be published. Required fields are marked *

Techie Weblog © 2015-2018