# Basic Apache settings. Check with your host before enabling optional directives.
Options -Indexes
DirectoryIndex index.php index.html

<IfModule mod_rewrite.c>
  RewriteEngine On
  # Redirect HTTP to HTTPS only after a valid SSL certificate is installed.
  # Uncomment the next two lines when HTTPS is active:
  # RewriteCond %{HTTPS} !=on
  # RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule>

<IfModule mod_headers.c>
  Header always set X-Content-Type-Options "nosniff"
  Header always set Referrer-Policy "strict-origin-when-cross-origin"
  Header always set X-Frame-Options "SAMEORIGIN"
</IfModule>

<FilesMatch "^(README\.txt|\.env|composer\.(json|lock))$">
  Require all denied
</FilesMatch>
