I have a CakePHP installation in a sub folder in my server, I want to install another application inside that subfolder:
root/public_html/subfolder/cake/ roo
Put this before the RewriteRule lines:
RewriteRule
RewriteCond %{REQUEST_URI} !^/my_custom_application