David Golding has a really good screencast that covers Cake and directories.
http://www.davidgolding.net/screencasts Watch the Cake running outside root screencast which really clarified things for me. On Fri, Sep 19, 2008 at 3:47 PM, MikeK <[EMAIL PROTECTED]> wrote: > > My Cake app used to be at www.mydomain.com/ams. The app and cake > subdirs lived there and the default .htaccess files were funneling > things to webroot. Most web requests looked like: > > www.mydomain.com/mycakedir/controller/action/parms > > Now I have moved things to remove mycakedir completely. the app and > cake subdirs now live in public_html of my site and everything works > fine once I setup the htaccess so all request now work with: > > www.mydomain.com/controller/action/parms > > The problem I have been putting dents in my head with is how to > redirect the old requests to the new location. I have tried using > htaccess redirect 301, I have tried doing 301 redirects with mod- > rewrite since we have it available and I cant seem to figure out how > to do: > > www.mydomain.com/mycakedir/controller/action/parms => > www.mydomain.com/controller/action/parms > > The simplest solution I am thinking must be at the apache htaccess > level. Can someone give me some htaccess syntax that works or some > good advise on a different method for redirect? > > Everything that comes into www.mydomain.com at the root level is > intercepted by the cake router. Is there a way for me to interpret > these requests, remove the 'mycakedir' from the request and redirect > properly? Also I think it needs to have a 301 header as well (or does > it?). > > Any help is much appreciated. > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
