【发布时间】:2016-10-12 12:44:26
【问题描述】:
我已将站点更改为 https 并在 .htaccess 中设置了重定向。但我也设置了严格的传输安全性。都是必要的还是有用的?
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=16070400"
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
</IfModule>
干杯
【问题讨论】:
标签: apache .htaccess redirect https hsts