AddDefaultCharset UTF-8 

RewriteEngine On

Options -Indexes 

RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [NC,L]

RewriteCond %{REQUEST_FILENAME} !-f   
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^(/index\.php|/resources|/robots\.txt|/favicon\.ico|/templates)
RewriteRule ^(.*)$ /index.php/$1 [NC,L]