404 Controller or its method is not found - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9) +--- Thread: 404 Controller or its method is not found (/showthread.php?tid=87951) |
404 Controller or its method is not found - SKPAdam - 06-26-2023 CI is looking at the subdirectory to use as the controller (auto route - no routes), I even set up a route to try to direct it but it still looks at the wrong url segment https://codeigniter4.github.io/userguide/incoming/routing.html#uri-segments Ex: mywebsite.com/ci4app/home/participantlogin PHP Code: Controller or its method is not found: \App\Controllers\Ci4app::home it thinks ci4app is the controller, it is really home CI_VERSION = '4.3.6' RE: 404 Controller or its method is not found - kenjis - 06-26-2023 Using subfolder is difficult to configure. I recommend you use subdomain (e.g., ci4app.mywebsite.com) instead of subfolder if you can. RE: 404 Controller or its method is not found - SKPAdam - 06-26-2023 (06-26-2023, 04:08 PM)kenjis Wrote: Using subfolder is difficult to configure. It would take a bit to migrate, I was trying not to have to do that. It seems like there should be a setting in autoroutes where you can set a base_url something. RE: 404 Controller or its method is not found - kenjis - 06-26-2023 You need the subfolder ci4app in your document root of the web server. RE: 404 Controller or its method is not found - SKPAdam - 06-26-2023 (06-26-2023, 07:42 PM)kenjis Wrote: You need the subfolder ci4app in your document root of the web server. It is/was although it was named differently ex ci-4-app-code/. |