<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L] 
</IfModule>

#Options -Indexes
#RewriteEngine on
#RewriteCond $1 !^(index\.php|assets/|robots\.txt)
#RewriteRule ^(.*)$ index.php?/$1 [L]  