Options -Indexes
RewriteEngine On

# Protect application internals when extracted directly into public_html.
RewriteRule ^(?:app|config|cron|database|relay|storage)(?:/|$) - [F,L,NC]
RewriteRule (^|/)\. - [F,L]

# Public files.
RewriteRule ^install\.php$ public/install.php [L]
RewriteRule ^assets/(.*)$ public/assets/$1 [L]
RewriteRule ^sw\.js$ public/sw.js [L]

# All application routes.
RewriteRule ^ public/index.php [QSA,L]
