Options -Indexes
RewriteEngine On

# Preserve Authorization for PHP/FastCGI on shared hosting (required by the ATM API).
RewriteCond %{HTTP:Authorization} ^(.+)$
RewriteRule ^ - [E=HTTP_AUTHORIZATION:%1]

# Deny all application internals when this complete folder is placed under public_html.
RewriteRule ^(?:app|storage|bin|tests)(?:/|$) - [F,L,NC]
RewriteRule ^(?:README\.md|RELEASE-NOTES\.md|UPLOAD-INSTRUCTIONS\.txt|VERSION\.txt|\.gitignore)$ - [F,L,NC]

# Serve static assets and route all other requests through the public front controller.
RewriteRule ^assets/(.*)$ public/assets/$1 [L]
RewriteRule ^public/ - [L]
RewriteRule ^ public/index.php [L,QSA]

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php81” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php81 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
