title: CodeIgniter server based 404
body: <p>I've installed CodeIgniter on my localhost xampp server in the directory:</p>
  
  <pre><code>localhost/CI/
  </code></pre>
  
  <p>When I visit that directory directly I get to see the homepage but when I try to vist any other page I get a server based <code>404</code> page. I don't get the see the CI 404.</p>
  
  <p>I already tried playing around with the <code>uri_protocol</code> but I can't get it to work. Any clue?</p>
  
  <p><strong>routes.php</strong></p>
  
  <pre><code>$route['page/create'] = 'page/create';
  $route['(:any)'] = 'page/view/$1';
  $route['default_controller'] = 'page/view/hello-world';
  $route['404_override'] = '';
  </code></pre>
  
  <p><strong>Page controller</strong></p>
  
  <pre><code>class Page extends CI_Controller {
  
      public function __construct()
      {
          parent::__construct();
          $this-&gt;load-&gt;model('page_model');
      }
  
      public function view($slug)
      {
          $data['page'] = $this-&gt;page_model-&gt;get_page($slug);
  
          if (empty($data['page']))
          {
              show_404();
          }
  
          $data['title'] = $data['page']['title'];
  
          $this-&gt;load-&gt;view('templates/header', $data);
          $this-&gt;load-&gt;view('page/view', $data);
          $this-&gt;load-&gt;view('templates/footer');
      }
  
      public function create()
      {
          $this-&gt;load-&gt;helper('form');
          $this-&gt;load-&gt;library('form_validation');
  
          $data['title'] = 'Create a new page';
  
          $this-&gt;form_validation-&gt;set_rules('title', 'Title', 'required');
  
          if ($this-&gt;form_validation-&gt;run() === FALSE)
          {
              $this-&gt;load-&gt;view('templates/header', $data);   
              $this-&gt;load-&gt;view('page/create');
              $this-&gt;load-&gt;view('templates/footer');
          }
          else
          {
              $this-&gt;page_model-&gt;set_page();
              $this-&gt;load-&gt;view('page/success');
          }
      }
  }
  </code></pre>
  
  <p>The "Hello world!" shows nicely, but I can't get the create page to work. The view is located in <code>views/page/create.php</code></p>