RewriteEngine on RewriteCond $1 !^(index\.php|public|images|js|css|robots\.txt|favicon\.ico) RewriteRule ^(.*)$ index.php [L,QSA]