# Use this only if your hosting panel will not let you point the document root
# at public/. When you can set the docroot, do that instead and delete this file.
#
# It quietly rewrites every request into public/ and keeps app/, storage/ and
# database/ unreachable.

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Do not rewrite requests that already target public/.
    RewriteCond %{REQUEST_URI} !^/public/
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
