How htaccess files work in the PHP CodeIgniter framework?
Sometimes you'll be surprised to see that the homepage is loading properly, and all other pages are showing 404, Not Found error. The most probable reason for this is your server does not support SEO friendly URL.
Please follow the steps to check with the issue.
Verify if a .htaccess file already exists.
If there is no existing file, you will have to create a new dot .htaccess file.
If you can't find it, maybe the file is hidden.
Click on the setting button, and check Show hidden files.
Now, you can see the dot .htaccess file.
Type the code snippet given below here.
This will enable the SEO friendly URL.
Access the page on your browser.
It's now loading.
So, you need a dot .htaccess file to run PHP CodeIgniter, with SEO friendly URL.