Options -Indexes

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Keep application code, configuration, and local data outside the Web surface.
    RewriteRule ^(?:bin|config|database|src|storage|templates|tests|vendor)(?:/|$) - [F,L,NC]
    RewriteRule (^|/)\. - [F,L]

    # Development-only cookie probe endpoints. Exclude tools/ from distribution ZIPs.
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^tools/cookie-probe/(?:index|page-a|page-b|reset)\.php$ - [L,NC]

    RewriteRule ^$ public/index.php [L]
    RewriteRule ^assets/(.+)$ public/assets/$1 [L]
    RewriteRule ^install/?$ public/install.php [L,NC]
    RewriteRule ^ public/index.php [L]
</IfModule>

<IfModule !mod_rewrite.c>
    DirectoryIndex public/index.php
</IfModule>
