 <p>My fast approach to solving the problem is to create a function in an autoloaded helper file in the project i'm working on. This helper just redirects to the custom 404 page. So i just call <code>show_my_404()</code> instead of <code>show_404()</code></p> <pre><code>function show_my_404(){ //Using 'location' not work well on some windows systems redirect('controller/page404', 'location'); } </code></pre>