Options -Indexes
DirectoryIndex public/index.php

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Keep the installer available during setup.
    RewriteRule ^install\.php$ - [L]

    # Block direct web access to application internals.
    RewriteRule ^(app|config|database|storage)(/|$) - [F,L,NC]

    # Serve the public application at the domain root.
    RewriteCond %{REQUEST_URI} !/public/ [NC]
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
