DirectoryIndex index.php

RewriteEngine On

# Keep real files and directories accessible.
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

# Send all application routes to the front controller.
RewriteRule ^ index.php [QSA,L]
