I have hosted the BBBB.COM site in a shared hosting server, which has a root domain called as AAAA.COM, which is a wordpress site. So, my site folder is located at AAAA.COM/BBBB, which is not accessible directly nor by search engines.
My problem is – there is a subdomain created automatically, when I checked through cpanel, where it shows BBBB.AAAA.COM as a subdomain, which might be normal for a hosting server.
However, all my contents from BBBB.COM are indexed in Google search. When I click one of the search results, it shows BBBB.AAAA.COM as the URL in address bar, but shows everything from BBBB.COM.
I am not able to remove AAAA.BBBB.COM subdomain from CPanel as it shows that the subdomain has a link with the domain BBBB.COM.
I can’t even block search engines from accessing the subdomain, as I have to use this code in robots.txt placed in subdomain:
User-Agent: *
Disallow: /
And this code in htaccess file of the root domain:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.example.com$
RewriteRule ^robots.txt$ robots_no.txt
But, If I place the robot.txt with Disallow tag in BBBB.COM, then the whole BBBB.COM site will be deindexed by search engine.
Can I solve this or Do I have to contact the Hosting support?