RewriteEngine on
RewriteBase /
AddDefaultCharset utf-8
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
<FilesMatch ".(htaccess|htpasswd|ini)$">
Order Allow,Deny
Deny from all
</FilesMatch>