You may also create another vhost for a catchall for whatever things you
might want to redirect there, and give it a 301 to where you do want them
to go.   I do things like this to force https, or add the www

On Fri, Apr 13, 2012 at 5:29 PM, lowpass <[email protected]> wrote:

> On Fri, Apr 13, 2012 at 9:43 AM, kdubya <[email protected]> wrote:
> > I have always made rewrite rule changes in the /site/.htacess file
> > exclusively.
> >
> > I don't really know why the  /site/app/.htaccess (or for that matter
> > /site/app/webroot/.htaccess) files exist. I can't even dream up a
> scenario
> > where those files would ever be applied - as long as the /site/.htaccess
> > file exists.
>
> It depends on what the DocumentRoot is set to. Of course, if one has
> the ability to set it to /path/to/site/app/webroot in the main config
> then the rewrite rules can be placed there and all .htaccess files
> removed for better performance.
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to