我有一个网站(来自godaddy 的域并托管在hostgator 中)。当我手动更新证书时,我可以将我的网站重定向到 https,但它总是从谷歌搜索转到 http。在线搜索后,我知道考虑到目标域的Strict-Transport-Security: max-age=15768000结果curl -i -L将满足我的需要,因为它会强制浏览器以 https 打开网站。但我对如何在我的网站上实现这一点感到困惑。
Strict-Transport-Security: max-age=15768000
curl -i -L
谁可以帮我这个事 ?
php https curl http hsts
curl ×1
hsts ×1
http ×1
https ×1
php ×1