In Apache you can use the Alias directive to serve stuff from almost anywhere. As I recall you would have put that in the httpd.conf, rather than an .htaccess. I use it for serving a very large image folder that wouldn't fit on the drive my webroot is on.
On Tue, Apr 5, 2011 at 11:22 PM, Thiago Elias <[email protected]> wrote: > Hey guys. > > Where I work, we have some CakePHP Apps running on the same server. > Sometimes I need to update an entire app, and I'm always having to put the > update in a new folder, copy all webroot content (Images or any other files > from my users) to the app new folder, and finally, remove the old one and > rename the new folder.. > > Due to this, I would like to know if there is any possibility to mantain > the img folder out of the webroot folder, in another folder even out of the > application, so I'll be able to update the app without fear. > > I was thinking in a structure like this: > > *Normal Cake App* > /root > *+ app* > ++ webroot > +++ img > +++ uploads > > > *What I want to do* > /root > *+ app* > ++ webroot > *+ app_content* > ++ img > ++ uploads > > I know that this approach could be strange, but it could help in my > context. > > ahh. last question: If this is possible, how to handle the $html->image > helper ?! (I know that it goes directly into the /webroot/img folder, so, it > will be interesting to change). > > Thanks for the help. > > > Thiago > > -- > 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
