简体   繁体   中英

Codeigniter : Cannot Access Controller Subfolder in Shared Hosting

Hope you can help me with my problem. This is my first time deploying an Application into a shared hosting which is Hostgator Baby Plan. I used codeigniter framework to build the application. I created a subfolder under controller and it's working fine in my localhost but when I transfer it on the the web hosting all links that are in controller's sub folder is not accessible. All I can access are those controllers that are not in sub folder. Do I need to configure something on shared host or in my application? Please help.

application
-- controllers
---- api
------ users.php -> Not able to access but on my local its working
------ items.php -> Not able to access but on my local its working
---- welcome.php -> I can Access this

May be you are developing your site with windows and you are hosting with linux.

Check your php version and select lastest php version, rename

users.php -> Users.php

and rename your

class users -> Users

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM