CodeIgniter Forums

Full Version: custom 404 error page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?