On 2/22/07, Wey <[EMAIL PROTECTED]> wrote: > Hi, I'm actually trying to do exactly this. I don't know .htaccess > that well, so I how would I configure it to serve up directories and > files if they exist?
I just solved a similar situation where in I wanted the http://mysite.com/ (and in turn urls like http://mysite.com/about, http://mysite.com/portfolio etc) to be served by a cakeapp but at the same time http://mysite.com/blog/ http://mysite.com/some_other_app/ to work just as well The setup ultimately became something like public_html | \----------page (the app which serves / ) | \----------blog .htaccess the .htaccess has <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ page/app/webroot/ [L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule (.*) page/app/webroot/$1 [L] </IfModule> Some simple mapping in the page/app/config/routes.php solved everything Anyone has any better suggestions? Cheers Tarique -- ============================================================= PHP for E-Biz: http://sanisoft.com Cheesecake-Photoblog: http://cheesecake-photoblog.org ============================================================= --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---