Apache|Apache .htaccess配置

添加或服务器端包含SSI AddHandler server-parsed .html

配置https跳转
RewriteEngine On
RewriteBase /
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.xxxx.com/$1 [R=301,L]

设置文件缓存时间
Header set Cache-Control "max-age=2592000"

配置服务器压缩技术
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URL .(?:gif|jpe?g|png|exe|t?gz|zip|bz2|sit|rar|pdf|mov|avi|mp3|mp4|rm)$ no-gzip dont-vary
【Apache|Apache .htaccess配置】AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-httpd-php application/x-javascript

    推荐阅读