I want auto routing in codeignitor 4 but don't know how to do it.
As said in the Routes.php file, I have set the "setAutoRoute" to true and also set $autoRoutesImproved to true in "app/Config/Feature.php" but always show 404 error.
app/Config/Routes.php
$routes->setAutoRoute(true);
app/Config/Feature.php
public bool $autoRoutesImproved = true;
I want URL to be like http://localhost/codeigniter4/pages "pages" is my new controller.