cakephp4路由到未知路径
cakephp4 routing to a unknown path
当我访问我的网站时在 cakephp4 中
http://crm.xx.com/users/login
然后输入
https://crm.xx.com
我被重定向到这个
https://crm.xx/crm_system/users/login?redirect=%2F
路由代码中没有执行此操作的地方(routes.php pr in appController),所以我不明白如何解决这个问题或去哪里找。我将子域设置为 crm.step-familydynamics.com 并指向 crm 的正确文件夹。我在哪里寻找它的重定向位置?
添加到您的主页控制器。因此,主页对访问它的每个人都是可见的。与不需要身份验证的页面一起使用!
public function beforeFilter(Event $event)
{
parent::beforeFilter($event);
$this->Auth->allow('home'); //Add the routes you want
}
当我访问我的网站时在 cakephp4 中
http://crm.xx.com/users/login
然后输入 https://crm.xx.com
我被重定向到这个
https://crm.xx/crm_system/users/login?redirect=%2F
路由代码中没有执行此操作的地方(routes.php pr in appController),所以我不明白如何解决这个问题或去哪里找。我将子域设置为 crm.step-familydynamics.com 并指向 crm 的正确文件夹。我在哪里寻找它的重定向位置?
添加到您的主页控制器。因此,主页对访问它的每个人都是可见的。与不需要身份验证的页面一起使用!
public function beforeFilter(Event $event)
{
parent::beforeFilter($event);
$this->Auth->allow('home'); //Add the routes you want
}