404 Override Not Working |
Viewing the Core code, setting a custom 404_override in ./config/routes.php does not change how the show_404() method is used.
The override is used for when your Controller can not be located. It will then load the Controller that is set in the config value. This is not what is happening in your case, because CI can locate the controller. Look at the docs https://codeigniter.com/user_guide/gener...l#show_404 What you need todo is create your own show_404 method or redirect to your custom Notfound controller instead of calling show_404 and pass along any needed arguments |
Welcome Guest, Not a member yet? Register Sign In |