Your IP : 216.73.217.6


Current Path : /home/atelierpru/www/airvalue/
Upload File :
Current File : /home/atelierpru/www/airvalue/.htaccess

RewriteEngine On

# Redirect www to non-www
RewriteCond %{HTTP_HOST} ^www\.airvalue\.fr [NC]
RewriteRule ^(.*)$ https://airvalue.fr/$1 [R=301,L]

# Force HTTPS
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

# API proxy PHP : servir directement, pas de rewrite Astro
RewriteRule ^adm-api/ - [L]

# Disable directory listing
Options -Indexes

# ---- Cache navigateur : assets statiques (vendor + JS versionnés par ?v=) ----
<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresByType image/jpeg "access plus 30 days"
  ExpiresByType image/png "access plus 30 days"
  ExpiresByType image/svg+xml "access plus 30 days"
  ExpiresByType application/javascript "access plus 30 days"
  ExpiresByType text/css "access plus 30 days"
  ExpiresByType font/woff2 "access plus 30 days"
</IfModule>
<IfModule mod_headers.c>
  <FilesMatch "\.(js|css|woff2|jpg|jpeg|png|svg)$">
    Header set Cache-Control "public, max-age=2592000, immutable"
  </FilesMatch>
</IfModule>

# Custom error pages
ErrorDocument 404 /404.html