我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

将CakePHP默认重定向从HTTP更改为HTTPS?

I have project which is here http://www.example.com. I can simply login with this link but can't login https://www.example.com. How to change the CakePHP default redirection.

The site is working properly when I use http but not working with https.

You can use SecurityComponent::requireSecure (See) to force SSL for all actions, but as said before SSL should be enabled / supported on/by your webserver. It seems to me that this is not really a CakePHP problem.

近期文章

  • 从Jquery $ .getJSON方法获取全局数组数组到REUSE数组
  • 从所选图像中提取SRC,以逗号分隔
  • 如何显示此json数据中的变量
  • PHP preg_replace在null字符串上
  • PHP获取子域但不是实际域
  • 更改数组数据的效率
  • Twig无法识别传递给模板的变量
  • 无法使用其他数组搜索数组键=>值
  • 选中javascript中的所有复选框 - 使用不同值的数组复选框
  • 未定义索引忽略错误抑制
  • 无法访问键值对Twitter API用户时间线
  • 如何在多行中使用相同ID在MYSQL中加入2个表
  • PHP if / else和AND / OR来检查强制和可选字段
  • SQL - 使用SUM计算GROUP中有多少项
  • 使当前活动的菜单不起作用
  • 我的网站使用PHP GET方法将用户引导到新页面
  • 将JS数组传递给PHP,然后更新MySQL
  • 使用PHP删除空XML标记但忽略带有属性的标记
  • 使用PHP解析嵌套的JSON
  • 我无法弄清楚如何更新我的上次登录时间

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华