jonny77 发表于 2014-5-5 17:31:09

ci中enable_query_strings和path_info模式并存问题

首先,我设置了如下配置

$config['enable_query_strings'] = true;
$config['controller_trigger']    = 'c';
$config['function_trigger']      = 'a';
$config['directory_trigger']    = 'd'; // experimental not currently in use
这时候
http://www.test.com/?c=user&a=detail&id=123 可以访问(另外,我的ngx针对该url做了伪静态,http://www.test.com/user/detail-123.html,也可以访问的)
然后我
http://www.test.com/user/detail/ 和 http://www.test.com/user/xcv   理论上应该显示detail页面和404错误的,可是还是显示了首页的内容,求解

页: [1]
查看完整版本: ci中enable_query_strings和path_info模式并存问题