How to do ip canonicalization ?
-
Hi ,
my website is opening with IP too. i think its duplicate content for google...only home page is opening with ip, no other pages, how can i fix it?, might be using .htaccess i am able to do...but don't know proper code for this...this website is on wordpress platform...
Thanks
Ramesh
-
Hello,
You can add the next lines to your .htaccess to overcome the duplicate content on Serach Engines.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.com [OR]
RewriteCond %{HTTP_HOST} ^82.223.246.132
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]
This is for auto WWW, auto redirect from www.domain.com/index.php[or]index.html to www.domain.com
I hope this helped you!
-
Ramesh,
It's not a problem that you site opens when you type in the IP address--that's normal.
-
Hi Ramesh,
Chris is absolutely right there's no way your IP address is creating content
Your site is accessible through using DNS domain name servers your IP address is translated by a computer DNS server into something that you can remember like example.com instead of 123.488.91.00
It has no way of creating duplicate content
Regardless you do want to use a
Tags for every valid webpage that you want to show up in Google search engine.
here is more
http://moz.com/learn/seo/canonicalization
http://www.mattcutts.com/blog/rel-canonical-html-head/
http://googlewebmastercentral.blogspot.com/2013/04/5-common-mistakes-with-relcanonical.html
https://support.google.com/webmasters/answer/139394?hl=en
Hope this is of help,
Thomas
-
Hi Ramesh,
Being able to access your website using the IP address is very common and there is nothing that you should be worried about in this regard. It happens when you are hosting your site on a dedicated IP. This won't be the case if you go for a shared hosting where the IP address would be shared among other websites.
Best,
Devanur Rafi.
-
Thank you Thomas