htaccess url rewrite if file doesn't exist *OR* specific directory
snippet in htaccess

htaccess url rewrite if file doesn't exist *OR* specific directory

user5566

RewriteBase /
RewriteCond %{REQUEST_URI} !^/foldername
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php/$1 [L]