# Protect sensitive log files from public web access
<FilesMatch "\.(txt|log|json)$">
    Order allow,deny
    Deny from all
</FilesMatch>

# Allow index & standard web files
DirectoryIndex login.html home.html index.php index.html

# Enable HTTPS Redirection (Optional)
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
