CodeIgniter showing only default controller

后端 未结 15 2905
-上瘾入骨i
-上瘾入骨i 2021-02-14 21:59

I am using Codeigniter in Local WAMP. Here code is working fine. But i upload in Cpanel ( inside of example.com, folder name call \'mysite\'). Ther

15条回答
  •  执念已碎
    2021-02-14 22:16

    Sometimes "ORIG_PATH_INFO" fixes this issue. So you can also try again with changing uri_protocol to "ORIG_PATH_INFO"

    $config['uri_protocol'] = "ORIG_PATH_INFO";
    

    and the base_url should be absolute,

    $config['base_url'] = "http://example.com/mysite/";
    

提交回复
热议问题