Re: Off the wall - sub-domain question

From: Date: Tue, 27 Aug 2013 15:49:35 +0000
Subject: Re: Off the wall - sub-domain question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-321999@lists.php.net to get a copy of this message
On Wed, Aug 21, 2013 at 5:16 PM, Jim Giner <jim.giner@albanyhandball.com> 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/

« previous php.general (#321999) next »