Discussion:
Off the wall - sub-domain question
Jim Giner
2013-08-21 21:16:57 UTC
Permalink
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? I'm really new at this stuff and know nothing. I'm lucky
that google is even finding my site!

IN advance - I apologize for this off-topic question, but this place is
a source of much knowledge, so I just threw in a quick interlude here to
pick someone's brain. :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Curtis Maurand
2013-08-22 12:05:34 UTC
Permalink
Is the subdomain also in a subfolder of the main domain?
Post by Jim Giner
I have a main domain (of course) and a sub
domain. I'm really trying to
Post by Jim Giner
steer my personal stuff away from
the main one and have focused all of
Post by Jim Giner
my php development to the
sub-domain.
Post by Jim Giner
Lately I noticed that google catalogs my
sub-domain site stuff under the
Post by Jim Giner
main domain name and the links
that come up lead to that domain name
Post by Jim Giner
with the path that takes
the user to the sub-domain's home folder and
Post by Jim Giner
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
Post by Jim Giner
sub-domain? I'm really new at this stuff and know
nothing. I'm lucky
Post by Jim Giner
that google is even finding my site!
IN advance - I apologize for this off-topic question,
but this place is
Post by Jim Giner
a source of much knowledge, so I just threw in
a quick interlude here to
Post by Jim Giner
pick someone's brain. :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jim Giner
2013-08-22 13:19:26 UTC
Permalink
Post by Curtis Maurand
Is the subdomain also in a subfolder of the main domain?
Post by Jim Giner
I have a main domain (of course) and a sub
domain. I'm really trying to
Post by Jim Giner
steer my personal stuff away from
the main one and have focused all of
Post by Jim Giner
my php development to the
sub-domain.
Post by Jim Giner
Lately I noticed that google catalogs my
sub-domain site stuff under the
Post by Jim Giner
main domain name and the links
that come up lead to that domain name
Post by Jim Giner
with the path that takes
the user to the sub-domain's home folder and
Post by Jim Giner
beyond.
Is there something that php (apache??) can do to control either
google's
Post by Jim Giner
robots or the user's view (url) so that it appears as a
page of my
Post by Jim Giner
sub-domain? I'm really new at this stuff and know
nothing. I'm lucky
Post by Jim Giner
that google is even finding my site!
IN advance - I apologize for this off-topic question,
but this place is
Post by Jim Giner
a source of much knowledge, so I just threw in
a quick interlude here to
Post by Jim Giner
pick someone's brain. :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yes - the sub is an add-on domain to my primary domain. Hence the
overlap and problem.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Willie
2013-08-22 13:43:45 UTC
Permalink
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
Post by Jim Giner
Post by Curtis Maurand
Is the subdomain also in a subfolder of the main domain?
Post by Jim Giner
I have a main domain (of course) and a sub
domain. I'm really trying to
Post by Jim Giner
steer my personal stuff away from
the main one and have focused all of
Post by Jim Giner
my php development to the
sub-domain.
Post by Jim Giner
Lately I noticed that google catalogs my
sub-domain site stuff under the
Post by Jim Giner
main domain name and the links
that come up lead to that domain name
Post by Jim Giner
with the path that takes
the user to the sub-domain's home folder and
Post by Jim Giner
beyond.
Is there something that php (apache??) can do to control either
google's
Post by Jim Giner
robots or the user's view (url) so that it appears as a
page of my
Post by Jim Giner
sub-domain? I'm really new at this stuff and know
nothing. I'm lucky
Post by Jim Giner
that google is even finding my site!
IN advance - I apologize for this off-topic question,
but this place is
Post by Jim Giner
a source of much knowledge, so I just threw in
a quick interlude here to
Post by Jim Giner
pick someone's brain. :)
--
Post by Jim Giner
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yes - the sub is an add-on domain to my primary domain. Hence the
overlap and problem.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Willie Matthews
***@gmail.com
Jim Giner
2013-08-22 14:00:18 UTC
Permalink
Post by Willie
The only way that I know of to take care of that is to put a file in your
User-agent: *
Disallow: /FolderName
Post by Jim Giner
Post by Curtis Maurand
Is the subdomain also in a subfolder of the main domain?
Post by Jim Giner
I have a main domain (of course) and a sub
domain. I'm really trying to
Post by Jim Giner
steer my personal stuff away from
the main one and have focused all of
Post by Jim Giner
my php development to the
sub-domain.
Post by Jim Giner
Lately I noticed that google catalogs my
sub-domain site stuff under the
Post by Jim Giner
main domain name and the links
that come up lead to that domain name
Post by Jim Giner
with the path that takes
the user to the sub-domain's home folder and
Post by Jim Giner
beyond.
Is there something that php (apache??) can do to control either
google's
Post by Jim Giner
robots or the user's view (url) so that it appears as a
page of my
Post by Jim Giner
sub-domain? I'm really new at this stuff and know
nothing. I'm lucky
Post by Jim Giner
that google is even finding my site!
IN advance - I apologize for this off-topic question,
but this place is
Post by Jim Giner
a source of much knowledge, so I just threw in
a quick interlude here to
Post by Jim Giner
pick someone's brain. :)
--
Post by Jim Giner
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yes - the sub is an add-on domain to my primary domain. Hence the
overlap and problem.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'll try it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dan McCullough
2013-08-22 14:08:44 UTC
Permalink
So its indexing http://www.domain.com/subdomain/page.php and you would
rather it index http://subdomain.domain.com/page.php. If that is the case
then what Willie said holds true

User-agent: *
Disallow: /subdomain

Place a robots.txt in the domain.com public root directory.

To Googles indexer http://subdomain.domain.com/page.php and
http://www.domain.com/subdomain/page.php are totally different and
therefore blocking /subdomain will not affect subdomain.domain.com.

Sign up for Google Webmaster and add two sites subdomain.domain and
www.domain that way you can delete improperly indexed pages.
Do some test scans and see if there are links on your www.domain that are
linked to www.domain.com/subdomain rather then subdomain.domain.com
Post by Willie
The only way that I know of to take care of that is to put a file in your
User-agent: *
Disallow: /FolderName
Post by Jim Giner
Post by Curtis Maurand
Is the subdomain also in a subfolder of the main domain?
Post by Jim Giner
I have a main domain (of course) and a sub
domain. I'm really trying to
Post by Jim Giner
steer my personal stuff away from
the main one and have focused all of
Post by Jim Giner
my php development to the
sub-domain.
Post by Jim Giner
Lately I noticed that google catalogs my
sub-domain site stuff under the
Post by Jim Giner
main domain name and the links
that come up lead to that domain name
Post by Jim Giner
with the path that takes
the user to the sub-domain's home folder and
Post by Jim Giner
beyond.
Is there something that php (apache??) can do to control either
google's
Post by Jim Giner
robots or the user's view (url) so that it appears as a
page of my
Post by Jim Giner
sub-domain? I'm really new at this stuff and know
nothing. I'm lucky
Post by Jim Giner
that google is even finding my site!
IN advance - I apologize for this off-topic question,
but this place is
Post by Jim Giner
a source of much knowledge, so I just threw in
a quick interlude here to
Post by Jim Giner
pick someone's brain. :)
--
Post by Jim Giner
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yes - the sub is an add-on domain to my primary domain. Hence the
overlap and problem.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Willie Matthews
--
Thank you,

Dan

Cell: 484-459-2856

<https://www.facebook.com/dpmccullough>
<http://www.linkedin.com/in/danmccullough>
Lester Caine
2013-08-22 14:26:20 UTC
Permalink
Yes - the sub is an add-on domain to my primary domain. Hence the overlap and
problem.
I don't think there is any way to get google to separate filing information on
different subdomains from the main domain, but you can stop them filing content
altogether by identifying folders you do not want them to use. I have fun with
them indexing the page histories if I forget to block that particular functions
.php file.
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Daniel Brown
2013-08-27 15:49:35 UTC
Permalink
Post by Jim Giner
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? I'm really new at this stuff and know nothing. I'm lucky that
google is even finding my site!
You'd probably want to do some 301 redirects with mod_rewrite to
force the domain over to the subdomain if under that directory. In so
doing, Google (and other search engines) will drop the /subdomain
folder, and index only the destination.
--
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Continue reading on narkive:
Loading...