# Opens index.html when someone visits your domain
DirectoryIndex index.html
Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
# Force HTTPS (the microphone and offline mode need it)
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Pass the login token through to PHP
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
<IfModule mod_mime.c>
AddType text/javascript .js
AddType application/manifest+json .json
</IfModule>
<IfModule mod_headers.c>
Header set X-Content-Type-Options "nosniff"
<Files "sw.js">
Header set Cache-Control "no-cache"
</Files>
</IfModule>
