RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt|assets|js|uploads)
RewriteRule ^(.*) index.php/$1 [L]