# ATEC OPTIMIZE START RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] SetOutputFilter DEFLATE AddType application/json .json AddType image/webp .webp AddType video/webm .webm AddType font/ttf .ttf AddType font/woff .woff AddType font/woff2 .woff2 Header set Connection keep-alive # 4 month Header set Cache-Control "max-age=10368000, public" Header set Cache-Control "max-age=10368000, public" # 30 days Header set Cache-Control "max-age=2592000, private" Header set Cache-Control "max-age=600, private, must-revalidate" # ATEC OPTIMIZE END # BEGIN WordPress RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress