Options -Indexes -MultiViews
ErrorDocument 404 /404.html
ErrorDocument 403 /403.html
RewriteEngine On
RewriteRule ^\.well-known/(acme-challenge|pki-validation)/ - [L]
RewriteCond %{HTTP_HOST} ^www\.cleaningservicenassaucounty\.com$ [NC]
RewriteRule ^ https://cleaningservicenassaucounty.com%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

# Compress text responses when Apache supports mod_deflate.
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript application/javascript application/json application/xml image/svg+xml
</IfModule>

# Revalidate content pages; reuse assets across visits.
<IfModule mod_headers.c>
<FilesMatch "\.(?:css|js|webp|avif|png|jpe?g|gif|svg|ico)$">
Header set Cache-Control "public, max-age=2592000"
</FilesMatch>
<FilesMatch "\.(?:html|xml|txt)$">
Header set Cache-Control "no-cache"
</FilesMatch>
</IfModule>
