CodeIgniter showing only default controller

后端 未结 15 2907
-上瘾入骨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:09

    Remove

    $route['user/(:any)'] = 'user/index';
    

    in your routes.php file. user/signin matches the above condition, that is why CI route the request to user/index instead of your "User" controller "signin" function.

    What are you trying to achieve with that route configuration?

提交回复
热议问题