I'm not sure if this is a problem specific to how my hosting is structured or not.
Let's say the main domain for my account is maindomain.com (for purpose of discussion)
I am building other sites, e.g. anothersite.com and website.com
The folder/directory structure on my hosting would therefore be:
maindomain.com (root) + +---> anothersite.com (subfolder) + +---> website.com (subfolder)
The domains are mapped such that they map to their respective folders. So for example, anothersite.com takes the visitor to the index.php in the folder anothersite.com
However, in Google, as well as just search results for these sites and their content - anothersite.com and website.com (what I want), I also see results that include:
Obviously this is not the way I want search data for these sites to occur. I would like them to be omitted from the search results.
How can the hosting be configured so that the results for each of these respective domains are separate, i.e. not concatenated, so if I search for items relating to these respective sites, I only get results for anothersite.com relevant to it, same for website.com and same for maindomain.com - also used itself.
Such a solution to this problem should not damage the results that I do want to see.
I'm aware of robots.txt but I'm not sure what I need to put in these to stop the mixed-up/concatenated searches without damaging the real results. Or even if all search engines obey them. Is there something I can also do with .htaccess ?
As it is shared-hosting, I don't have complete control over how the folder/directories are structured for this hosting so I would have to stick with the structure but ideas as to how to get desirable search results are welcome.