Total Pageviews

Thursday 16 April 2015

Chrome强制http定向到https方法

如果你使用的是Chrome浏览器,只需几个简单的步骤即可:

    打开Chrome,在地址栏键入chrome://net-internals/#hsts;
    在 Add domain 中输入你想要实现这个强制跳转的域名,比如 twitter.com,plus.google.com 等
    勾选上 Include subdomains,这样可以确保 Twitter 的所有二级域名都被重定向到https,比如search.twitter.com
    点击Add按钮,现在大功告成。

由此你便不需要其他的什么插件了。另外,这个功能可能需要较高版本的Chrome,如果无法打开上面的地址,你可能需要下载高版本的Chrome.