CodeIgniter Forums
index.php - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: index.php (/showthread.php?tid=80684)



index.php - donpwinston - 12-01-2021

When I execute
Code:
redirect()->to(base_url('/MEBN/password'));

The url https://host-name.com/index.php/MEBN/password is used by the browser.

Why is index.php stuck in there? How do I get rid of it? It works but I don't like it.



RE: index.php - kenjis - 12-01-2021

Set $indexPage in Config/App.php.
https://github.com/codeigniter4/CodeIgniter4/blob/develop/app/Config/App.php#L39