Mobile app version of vmapp.org
Login or Join
Sims2060225

: How to prevent Google from indexing non-domain URL of website? My webhost gives you two URLs for your website: the URL on your shared server, which is something like usr283725992783.webhost.com

@Sims2060225

Posted in: #Domains #Google #Indexing

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 example.com

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

I can't add "nofollow" tags to usr283725992783.webhost.com because that URL serves the same files as example.com.
How can I only make Google not follow usr283725992783.webhost.com and keep following example.com?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Sims2060225

2 Comments

Sorted by latest first Latest Oldest Best

 

@Moriarity557

I thing going for 301 redirect using .htaccess will make google not follow this link.Or you can use robots.txt.

10% popularity Vote Up Vote Down


 

@Bryan171

In your case, you will most probably have duplicate content issues and thus indexing issues for your site.

To avoid duplicate content issues with search engines, you can add a rel="canonical" tag (how to use it on Google support) in all your pages to specify the right version of pages is the one from example.com.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme