本帖最后由 beibeishan 于 2019-8-29 10:52 编辑
- <script>
- var ssl = "https:";
- if (window.location.protocol != ssl){
- window.location.href = ssl + window.location.href.substring(window.location.protocol.length); //SSL force!
- }
- </script>
复制代码
前端模板js的,
如果要php的自行百度;
nginx 配置文件也行。
|
|