Options -MultiViews -Indexes
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Send Requests To Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Restrict access to critical files
Order allow,deny
Deny from all
Order allow,deny
Deny from all
Order allow,deny
Deny from all
Order allow,deny
Deny from all
Options -MultiViews -Indexes
RewriteEngine On
# Block access to .env files
RewriteRule ^.*\.env$ - [F,L]
# Block access to SQLite database files
RewriteRule ^.*\.sqlite$ - [F,L]
# Block access to ZIP files
RewriteRule ^.*\.zip$ - [F,L]
# Block access to LOG files
RewriteRule ^.*\.log$ - [F,L]