CodeIgniter Forums
custom 404 error page - Printable Version

+- CodeIgniter Forums (
+-- Forum: Using CodeIgniter (
+--- Forum: General Help (
+--- 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...

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?