# OPTIONAL Apache/LiteSpeed configuration example. Confirm your host supports it.
DirectoryIndex index.html
RewriteEngine On
# Preferred HTTPS, apex hostname
RewriteCond %{HTTPS} !=on [OR]
RewriteCond %{HTTP_HOST} ^www\.go-stakes\.com$ [NC]
RewriteRule ^ https://go-stakes.com%{REQUEST_URI} [R=301,L,NE]
# Redirect requests that directly expose /index.html to their folder canonical
RewriteCond %{THE_REQUEST} \s/+(.*/)?index\.html[\s?] [NC]
RewriteRule ^(.*)index\.html$ /$1 [R=301,L,NE]
