# Fallback for hosts where the document root cannot be moved to /public.
# Preferred setup: point the domain's document root at /public instead.
Options -Indexes
RewriteEngine On
RewriteRule ^(app|config|database|storage|resources|routes|bin|tests)(/|$) - [F,L]
RewriteRule (^|/)\. - [F,L]
RewriteRule \.(md|sql|env|example|log|lock|json)$ - [F,L]
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ public/$1 [L]
