RewriteEngine On RewriteCond $1 !^(index\.php|images|css|javascript) RewriteRule ^(.*)$ /index.php/$1 [L]