1、用phpstudy完成服务器配置并用phpstudy自带的443一键配置后,https能够正常访问:
伪静态文件如下图所示:
但是开启http转https后 http还是无法正常访问,如若将https改为http 进行访问,域名会自动变换为https://localhost/xxxxx,如下图所示:
请问如何才能让http自动转换为https也能正常访问呢?
HSTS协议
https://blog.csdn.net/weixin_34061482/article/details/92320747
配置 HSTS协议
https://blog.csdn.net/qq_15563139/article/details/82904589
Apache配置SSL
https://blog.csdn.net/network_dream/article/details/83096417