![]() |
Hi all,
I am new to CI for like half a year and working on my second project using it. I wonder about one thing: My "normal" routing works well, domain.tld/page1 etc, Apache is set up to drop the index.php But when I use something like PHP Code: return redirect()->route('page1') Why is that (and how to prevent it)?
If you don't want to include index.php in your site URIs, set $indexPage to '' in the app/Config/App.php file.
The setting will be used when the framework generates your site URIs.
I sent a PR to improve the user guide:
https://github.com/codeigniter4/CodeIgniter4/pull/7873 Can someone review it? |
Welcome Guest, Not a member yet? Register Sign In |