How to prevent Google from indexing non-domain URL of website?

Posted by Gavin on Pro Webmasters See other posts from Pro Webmasters or by Gavin
Published on 2014-06-06T12:03:23Z Indexed on 2014/06/06 15:42 UTC
Read the original article Hit count: 268

Filed under:
|
|

My webhost gives you two URLs for your website:

  1. the URL on your shared server, which is something like usr283725992783.webhost.com and
  2. your domain URL, which is www.example.com

Google is indexing both of these URLs, but obviously I only want www.example.com to be indexed.

I can't add "nofollow" tags to usr283725992783.webhost.com because that URL serves the same files as www.example.com.

How can I only make Google not follow usr283725992783.webhost.com and keep following www.example.com?

© Pro Webmasters or respective owner

Related posts about google

Related posts about domains