Options -Indexes
DirectoryIndex index.html
RewriteEngine On
# Canonical HTTPS hostname (requires valid TLS certificate).
RewriteCond %{HTTPS} !=on [OR]
RewriteCond %{HTTP_HOST} !^eng-stakes\.com$ [NC]
RewriteRule ^ https://eng-stakes.com%{REQUEST_URI} [R=301,L,NE]
# Redirect direct /index.html requests to clean folder URLs.
RewriteCond %{THE_REQUEST} \s/+(.*/)?index\.html[\s?] [NC]
RewriteRule ^(.*)index\.html$ /$1 [R=301,L,NE]
