RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ [b]/path/to/cake/app/webroot/[/b]index.php?url=$1 [QSA,L]