已配置好SSL证书,目前的情况是,访问https://的时候一切正常,但是访问http://的时候却提示
400 Bad Request
The plain HTTP request was sent to HTTPS port

我想强制让http 转向 https:// 请问该如何实现呢?