Welcome Guest, Not a member yet? Register   Sign In
Trying to remove index.php from url in latest codeigniter 4.5.1
#5

(05-02-2024, 09:44 AM)Bosborne Wrote: Does the file 'view_services' exist in the app/Views folder?

Yes. When using index.php in the url, I've checked the controller/view worked fine



(05-02-2024, 03:51 PM)luckmoshy Wrote: Try go in App/Config/app then
PHP Code:
public string $indexPage 'index.php';  /*===*/  /*remove index.php*/ public string $indexPage ''

Yes, as stated in original post, I've tried that in .env file and app/Config/App.php also, without luck



(05-02-2024, 05:18 PM)kenjis Wrote:
(05-02-2024, 08:57 AM)kabeza Wrote: Then, when I try this url in browser

http://sw/services

I'm getting 404 ...

The exact error message matters.
If Apache returns the error before running CI4, CI4 cannot do anything.

Yes, the url works great with index.php but when I remove it Apache throws 404. Gonna check if I can do anything related to Apache and will update in case I succeed. Thanks
Reply


Messages In This Thread
RE: Trying to remove index.php from url in latest codeigniter 4.5.1 - by kabeza - 05-03-2024, 04:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB