# Only used if you upload TowDesk inside public_html instead of pointing a
# subdomain at the public/ folder (the recommended setup). It keeps the
# private folders unreachable and routes everything else into public/.
Options -Indexes
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteRule ^(app|config|database|storage|vendor)(/|$) - [F,L]
  RewriteRule (^|/)\. - [F,L]
  RewriteRule ^(README\.md|.*\.sql)$ - [F,L]
  RewriteCond %{REQUEST_URI} !/public/
  RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
