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