开发者

CodeIgniter 2.0 always redirected to welcome controller when set uri_protocol as AUTO

开发者 https://www.devze.com 2023-02-07 20:59 出处:网络
I just set up a development environment using CodeIgniter 2.0 and in config I leave the uri_protocol as

I just set up a development environment using CodeIgniter 2.0 and in config I leave the uri_protocol as

$config['uri_protocol'] = 'AUTO';

But my problem is all Controller/Action request send to the welcome controller. I checked this again by changing the uri_protocol to QUERY_STRING开发者_运维知识库 and it works fine for me. Why is this always redirected to welcome controller when using uri_protocol as AUTO?


'AUTO' option actualy tries the possible option in a certain order which may not be suitable to system you are working on. You should test each of the possible options to see which one suits your system. It happened to me on a customer server (windows server i guess).

Possible options listed as comment above the option line.

'AUTO'            Default - auto detects
'PATH_INFO'       Uses the PATH_INFO
'QUERY_STRING'    Uses the QUERY_STRING
'REQUEST_URI'     Uses the REQUEST_URI
'ORIG_PATH_INFO'  Uses the ORIG_PATH_INFO
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号