Это в .htaccess
SetEnvIf X-SSL-Emu on HTTPS=on
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
<FilesMatch "\.(ttf|otf|eot|svg)$" >
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1536000 seconds"
ExpiresByType image/x-icon "access plus 1536000 seconds"
ExpiresByType image/jpeg "access plus 1536000 seconds"
ExpiresByType image/png "access plus 1536000 seconds"
ExpiresByType image/gif "access plus 1536000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 1536000 seconds"
ExpiresByType text/css "access plus 1536000 seconds"
ExpiresByType text/javascript "access plus 1536000 seconds"
ExpiresByType application/javascript "access plus 1536000 seconds"
ExpiresByType application/x-javascript "access plus 1536000 seconds"
ExpiresByType text/html "access plus 1536000 seconds"
ExpiresByType application/xhtml+xml "access plus 1536000 seconds"
</ifModule>