RewriteEngine on

RewriteCond $1 !^(index\.php|gfx|css|app|js|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]