# CORNET STUDIO — Hostinger / Apache
DirectoryIndex index.html
AddDefaultCharset UTF-8
ErrorDocument 404 /404.html
# Force HTTPS
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# www → apex
RewriteCond %{HTTP_HOST} ^www\.cornetx\.site [NC]
RewriteRule ^(.*)$ https://cornetx.site/$1 [L,R=301]
# Security headers
Header set X-Content-Type-Options "nosniff"
Header set Referrer-Policy "strict-origin-when-cross-origin"
Header set X-Frame-Options "SAMEORIGIN"
# Cache static assets
ExpiresActive On
ExpiresByType text/html "access plus 1 hour"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType image/webp "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
# Gzip
AddOutputFilterByType DEFLATE text/html text/css application/javascript application/json image/svg+xml