URI Routing
We know that, there is a one-to-one relationship between a URL string and its corresponding controller class/method.
Routing rules are defined in the app/config/Routes.php file.
Routing rules can be specified using Placeholders or Regular Expressions.
How to Override 404 error page in codeIgniter 4? or How to Customize 404 page in codeigniter 4 ?
When a page is not found that matches the current URI, the system will show a generic 404 view
set404Override():
BY using this method we can change the view, to display or render a custom view.
How to map routes in codeIgniter 4,