title: Error 404: Page not found in codeigniter when controller is in subfolder
body: <p>Some of the controllers in my CI project are not working. The following is the directory structure:</p>
  
  <pre><code>controllers/student/profile/personal.php
  </code></pre>
  
  <p>When I call it using the URL: <strong>localhost/school/student/profile/personal</strong> then it displays 404 error.</p>
  
  <p><strong>Contents of personal.php file:</strong></p>
  
  <pre><code>class Personal extends CI_Controller {
  
      public function index() {
          echo "The is Personal Section";
      }
  }
  </code></pre>
  
  <p><strong>Contents of .htaccess file are:</strong></p>
  
  <pre><code>RewriteEngine on
  RewriteCond $1 !^(index\.php|resources|robots\.txt)
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?/$1 [L,QSA,PT] 
  </code></pre>
  
  <p>I don't know why it is not working. There are other controllers like <strong>controllers/student/login.php</strong> working ok.</p>
  
  <p><strong>Any Idea?</strong></p>