CI4 - Routing problem |
Hi,
When i load the URL that supposed to show my page, the server give me a 404 not found error. I added my routes on the app/Config/Routes.php file. I tried to add my routes before the default route ($routes->get("/") ![]() My routes : Code: $routes->get('/', 'Home::index'); How can i solved that ?
(04-11-2020, 06:36 AM)haunui Wrote: Hi, https://codeigniter.com/user_guide/incom...-in-routes Try changing this: PHP Code: $routes->add('hebergement', 'Home::hebergement'); PHP Code: $routes->get('hebergement', 'Home::hebergement'); and maybe add a / as well here: PHP Code: $routes->get('/hebergement', 'Home::hebergement'); |
Welcome Guest, Not a member yet? Register Sign In |