How to prevent Google from indexing non-domain URL of website?
- by Gavin
My webhost gives you two URLs for your website:
the URL on your shared server, which is something like usr283725992783.webhost.com
and
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?