Options -Indexes

<IfModule mod_rewrite.c>
  RewriteEngine On

  # Enforce HTTPS and www on discreetsoft.com subdomain in production
  RewriteCond %{HTTP_HOST} ^(www\.)?ecehfoundation\.discreetsoft\.com$ [NC]
  RewriteCond %{HTTPS} off [OR]
  RewriteCond %{HTTP_HOST} ^ecehfoundation\.discreetsoft\.com$ [NC]
  RewriteRule ^(.*)$ https://www.ecehfoundation.discreetsoft.com/$1 [R=301,L]
</IfModule>

ErrorDocument 404 /404.html

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

<FilesMatch "^llms(-full)?\.txt$">
  ForceType "text/plain; charset=utf-8"
</FilesMatch>

<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresByType text/css "access plus 1 year"
  ExpiresByType application/javascript "access plus 1 year"
  ExpiresByType image/jpeg "access plus 6 months"
  ExpiresByType image/png "access plus 6 months"
  ExpiresByType image/webp "access plus 6 months"
  ExpiresByType image/svg+xml "access plus 6 months"
</IfModule>
