RewriteEngine ON # Protect system folders RewriteRule^(application|system) - [F,L] # Default routing RewriteCond%{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .*index.php?/$0 [PT,L] SetOutputFilter DEFLATE