RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt|style\.css) RewriteRule ^(.*)$ /ci/index.php/$1 [L]