Custom 404 page working in localhost, but not in live site.. |
Hello,
I have the following problem.. I've created a custom 404 page controller and overrided it with routes file. But the thing is that in my localhost site this custom 404 page working fine, but in live site, the 404 error page is loaded over "application/views/errors/html/error_404.php" and not from the custom view file with header, footer etc.. Any ideas on what's going on? Here are routes, controller files etc... Routes: Code: $route['404_override'] = 'c404'; "c404" Controller: Code: <?php My_controller file: Code: <?php Thanks! //Life motto if (sad() == true) { sad().stop(); develop(); }
The code looks correct to me, so I am inclined to say it isn't the code you shared. One idea, are there differences in the web servers between your local and the live site?
|
Welcome Guest, Not a member yet? Register Sign In |