CodeIgniter Forums
custom 404 error page - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: custom 404 error page (/thread-64591.html)



custom 404 error page - scion - 03-08-2016

Hello everyone!

I want to show custom a 404 page with header and footer same like other site pages have, and i prefer to

do this using common show_404 function, but...

http://stackoverflow.com/questions/8422033/codeigniter-2-1-issue-with-show-404-and-404-override

Creating custom 404 controller and override 404 routing doesnt help! First reason - show_404 not

related with this controller (this is means that custom 404 controller working only if requested controller

doesnt exist, not by calling show_404 function) and second reason - all 404 pages will have same uri if

we make redirect to this custom controller instead using show_404 function.



So would be the best solution for this certain situation?

Thanks