CodeIgniter Forums
Hiding index.php with CI4 and MAMP - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Hiding index.php with CI4 and MAMP (/showthread.php?tid=80054)



Hiding index.php with CI4 and MAMP - james0r - 09-07-2021

Seems like I've found so many posted solutions to this problem and it took a while until one worked for me.
The only thing that worked for me was to change
Code:
public $indexPage = 'index.php';

to 

Code:
public $indexPage = '';

inside of /app/Config/App.php.

I'm assuming rewriting with .htaccess should work, but I can't seem to get it to.

Are there any problems with using the $indexPage fix?

Thanks.