Custom 404 page working in localhost, but not in live site.. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Custom 404 page working in localhost, but not in live site.. (/showthread.php?tid=72850) |
Custom 404 page working in localhost, but not in live site.. - HarrysR - 02-19-2019 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! RE: Custom 404 page working in localhost, but not in live site.. - xenomorph1030 - 02-20-2019 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? |