nginx 重定向的次数过多

首页直接配置跳转向 index.php/login
但由于\thinkphp\library\think\Request.php 中
pathinfo() 函数 return $this->pathinfo; 结果为'/',
这种情况就会去配置文件中查找设置默认的控制器和操作
tp5 中 \application\config.php
// 默认控制器名
'default_controller'     => 'Contract',
// 默认操作名
'default_action' => 'contract',

上面方法 改成存在的控制器和方法就行

 

posted @ 2018-03-13 16:09  歲夢灬沉浮  阅读(17098)  评论(0编辑  收藏  举报