top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

google catalogs my sub-domain site stuff under the main domain name

+1 vote
536 views

I have a main domain (of course) and a sub domain. I'm really trying to steer my personal stuff away from the main one and have focused all of my php development to the sub-domain.

Lately I noticed that google catalogs my sub-domain site stuff under the main domain name and the links that come up lead to that domain name with the path that takes the user to the sub-domain's home folder and beyond.

Is there something that php (apache??) can do to control either google's robots or the user's view (url) so that it appears as a page of my sub-domain?

posted Aug 21, 2013 by Sumit Pokharna

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
Is the subdomain also in a subfolder of the main domain?
Yes - the sub is an add-on domain to my primary domain. Hence the overlap and problem.

1 Answer

+1 vote

The only way that I know of to take care of that is to put a file in your main directory called "robots.txt". In that file you will put:

User-agent: *
Disallow: /FolderName

answer Aug 22, 2013 by Mandeep Sehgal
Similar Questions
+1 vote

Our company domain is http://www.applozic.com and on searching for "applozic" in google, google is showing the results for applogic.

How to fix it?

+2 votes
0 votes

I want to retrieve the user's location after user signs in my website. How can I do that?

At this moment here is the scope that i have: $client->setScopes('email');
I guess I have to change that.

And to retrieve data I have the following:
$client->verifyIdToken()->getAttributes();

Do I need another method than this?

...