![]() |
codeigniter 4 page404 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31) +--- Thread: codeigniter 4 page404 (/showthread.php?tid=81953) |
codeigniter 4 page404 - devo - 05-26-2022 hii guys i try to make redirect to home page if the url is not defind / 404, but it not redirect what i try is like this in app/config/route.php PHP Code: <?php PHP Code: <?php RE: codeigniter 4 page404 - iRedds - 05-26-2022 Before version 4.2 this will not work. You can use this solution. By specifying the route last. PHP Code: $routes->addRedirect('(:any)', '/'); RE: codeigniter 4 page404 - devo - 05-27-2022 (05-26-2022, 03:58 PM)iRedds Wrote: Before version 4.2 this will not work. i use version 4.1.9 PHP Code: <?php RE: codeigniter 4 page404 - InsiteFX - 05-27-2022 Yes but make sure you download the CodeIgniter Development version from GetHub. RE: codeigniter 4 page404 - devo - 05-27-2022 (05-27-2022, 12:18 AM)InsiteFX Wrote: Yes but make sure you download the CodeIgniter Development version from GetHub. what's different?? before i download zip from codeigniter website |