Mobile app version of vmapp.org
Login or Join
Odierno851

: Configure Google webmaster console to ignore duplicate subdomain I have a site hosted on x10hosting. This site is assigned to a free subdomain. example.x10host.com. I have now purchased my own

@Odierno851

Posted in: #Domains #GoogleSearchConsole #Subdomain #WebHosting

I have a site hosted on x10hosting. This site is assigned to a free subdomain. example.x10host.com.

I have now purchased my own domain: example.com

Unfortunately, x10hosting does not seem to allow me to change the main domain from the free .x10host.com to my new .com domain. Instead, I can either setup a parked domain - which redirects all traffic from example.com to example.x10host.com.

OR

It allows an add on domain. This is better in that if you go to example.com ... That is what is displayed as the web address in the browser. If I use the parked domain option, it shows that it has redirected to my example.x10host.com.

Soooo.... My question is: What would be the best way to manage these 2 domains in relation to google and other search engines. I'm guessing Google will find 2 domains with duplicate content. How can I ensure that only example.com is indexed and not example.x10host.com.

I have google webmaster console setup for both domains. As they share the same content - they also share the robots.txt file - so not sure how I can permanently stop Google indexing the x10host subdomain.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Odierno851

1 Comments

Sorted by latest first Latest Oldest Best

 

@Alves908

I can access .htaccess from its file manager.


In which case the easiest/safest way is probably just to set up a permanent redirect from the subdomain to the main domain (assuming both the subdomain and main domain are pointing to the same place):

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} x10host [NC]
RewriteRule (.*) example.com/ [R=301,L]


Where example.com is your canonical domain name.

Another approach is to set a <link rel="canonical" element in the head section of your pages pointing to the canonical URL. This will also avoid duplicate content issues with Google, providing both domains are verified in Google's Search Console. However, users would still be able to access your site by the x10host subdomain.

I'm not aware that you can specify this preference in Google Search Console alone, since you will still need to setup (and confirm) a 301 redirect.


I can either setup a parked domain - which redirects all traffic from example.com to example.x10host.com.


"Parked domains" don't normally perform an external redirection? Although this is usually an additional option that can be set in cPanel. (Maybe x10hosting do something different in this respect?)

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme