Options -Indexes

# Force HTTPS (cPanel AutoSSL provides the certificate).
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

<IfModule mod_headers.c>
    Header always set Strict-Transport-Security "max-age=31536000"
</IfModule>

# Internal include files are never served directly.
<FilesMatch "^_">
    Require all denied
</FilesMatch>
