DirectoryIndex index.php
Options -MultiViews

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Let Apache serve real files and directories directly. This keeps
    # /install/ available before Symfony itself is bootable.
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]

    # Everything else is handled by Symfony's front controller.
    RewriteRule ^ index.php [QSA,L]
</IfModule>

<IfModule !mod_rewrite.c>
    <IfModule mod_alias.c>
        RedirectMatch 307 ^/$ /index.php/
    </IfModule>
</IfModule>
