I have a solution. When a request is made apache checks if the directory exists. If it does, it checks if index.php, index.htm or index.html exists. If they don't, the request is forwarded to cake. And all this magic with mod_rewrite voodoo:
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^$ app/webroot/ [L] # check if directory exists, if so, add default indexing script. (and do a [N]ext round so the %{REQUEST_FILENAME} gets updated. Should also work with [PT]) RewriteCond %{REQUEST_FILENAME} -d RewriteRule (.*) %{REQUEST_FILENAME}index.php [N] # if above rewrite didn't yield any success, try with .htm RewriteCond %{REQUEST_FILENAME} !-f RewriteRule (.*)index.php$ $1index.htm # now try with .html RewriteCond %{REQUEST_FILENAME} !-f RewriteRule (.*)index.htm$ $1index.html # last but not least, if it is a file, serve it, else strip the index.html and give it to cake :) RewriteCond %{REQUEST_FILENAME} !-f RewriteRule (.*)index.html$ $1 RewriteCond %{REQUEST_FILENAME} !-f RewriteRule (.*) app/webroot/$1 [L] </IfModule> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---