After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
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
-
Thank you 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.
-
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
-
Ramesh,
It's not a problem that you site opens when you type in the IP address--that's normal.
-
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!
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Explore more categories
-
Chat with the community about the Moz tools.
-
Discuss the SEO process with fellow marketers
-
Discuss industry events, jobs, and news!
-
Chat about tactics outside of SEO
-
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
-