RewriteEngine on RewriteCond $1 !^(index\.php|folderi|robots\.txt|static) RewriteRule ^(.*)$ /index.php?/$1 [L]