# Sky Bright Rewards customer website
DirectoryIndex index.php

# Always use HTTPS.
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTPS} !=on
  RewriteCond %{HTTP:X-Forwarded-Proto} !=https
  RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  # locate.php is only for the other PHP files to include.
  RewriteRule ^locate\.php$ - [F,L]
</IfModule>

# Hide dotfiles (.htaccess, .git, ...).
<FilesMatch "^\.">
  Require all denied
</FilesMatch>
