Re: [PHP] Off the wall - sub-domain question
[email protected] (Daniel Brown)
| Newsgroups | php.general |
|---|---|
| Message-ID | <CAD9cneP5YO-doEiF3PriuRVNdnrfTzLRBZ7k-VsE_zdNE9yUXw@mail.gmail.com> |
On Wed, Aug 21, 2013 at 5:16 PM, Jim Giner <[email protected]> wrote: > 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/