# Apache : toutes les requêtes passent par index.php, sauf les fichiers existants
Options -Indexes
RewriteEngine On
# www et http : redirection permanente vers https://juriotech.com
RewriteCond %{HTTP_HOST} ^www\.juriotech\.com$ [NC]
RewriteRule ^ https://juriotech.com%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^juriotech\.com$ [NC]
RewriteRule ^ https://juriotech.com%{REQUEST_URI} [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L,QSA]
# Compression des pages, feuilles de style et scripts (chargement nettement plus rapide)
<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/javascript text/javascript application/json application/xml application/rss+xml image/svg+xml
</IfModule>
<IfModule mod_brotli.c>
  AddOutputFilterByType BROTLI_COMPRESS text/html text/css text/plain application/javascript text/javascript application/json application/xml image/svg+xml
</IfModule>
<IfModule mod_headers.c>
  <FilesMatch "\.(woff2|png|webp|jpg|svg|ico)$">
    Header set Cache-Control "public, max-age=31536000, immutable"
  </FilesMatch>
  <FilesMatch "\.(css|js)$">
    Header set Cache-Control "public, max-age=31536000, immutable"
  </FilesMatch>
</IfModule>
