|
发表于 2016-10-19 10:35:19
|
显示全部楼层
$config['uri_protocol'] = 'PATH_INFO';
然后每次输入http://sky.com/'的时候,如果没登录,它自动回跳转http://sky.com/auth/login 这个地址是正确的,但是它跳的是
http://127.0.0.1/sky/index.php?/auth/login 这个地址,我觉得是路由没重写
$config['uri_protocol'] = 'REQUEST_URI';
如果是nginx官方的配置我记得参数应该是 REQUEST_URI
|
|