RewriteEngine On RewriteBase / # Stop processing if file or directory exists RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Redirect all other requests to index.php RewriteRule ^(.*)$ index.php [L,QSA]