title: How to customize a 404 page in CODEIGNITER while performing the is_ajax_request function
body: <p>I have done the costume on $route["404_override"], and loaded my own 404 page.</p>
  
  <p>The problem is, why when I do a 404 page call with the function 'show_404 ();' This page still displays the Codeigniter standard page.</p>
  
  <p>in Exceptions.php</p>
  
  <pre><code>&lt;?php
  class MY_Exceptions extends CI_Exceptions {
    public function __construct(){
      parent::__construct();
    }
  
    public function show_404($page = ''){
      redirect('404','refresh');
      exit;
    }
  }
  </code></pre>
  
  <p>Is there anything wrong with the above code?</p>