title: Codeigniter issues with paths in localhost (XAMPP)
body: <p>The index page (aka homepage.php) in my code igniter install is working fine no matter what.</p>
  
  <p>The problem lies with using subdirectories to store other pages, currently its setup like:
  <img src="https://i.stack.imgur.com/kWl8y.png" alt="img1"></p>
  
  <p>loading homepage like <code>http://localhost/VAw_CI/</code> works fine (loading homepage.php), this is setup in routes.php:</p>
  
  <pre><code>$route['default_controller'] = "pages/homepage";
  </code></pre>
  
  <p>in config.php, I've setup:</p>
  
  <pre><code>$config['base_url'] = 'http://localhost/VAw_CI';
  
  /*
  |--------------------------------------------------------------------------
  | Index File
  |--------------------------------------------------------------------------
  |
  | Typically this will be your index.php file, unless you've renamed it to
  | something else. If you are using mod_rewrite to remove the page set this
  | variable so that it is blank.
  |
  */
  $config['index_page'] = '';
  </code></pre>
  
  <p>I specified <code>$config['index_page'] = '';</code> above, because I modified my .htaccess located in <code>htdocs</code>like:</p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule .*homepage/$0 [PT,L]
  </code></pre>
  
  <p>However, if I try to login on homepage.php, which is currently looks like:
  <img src="https://i.stack.imgur.com/IwVuV.png" alt="img2"></p>
  
  <p>It sends me to <code>http://localhost/VAw_CI/pages/clientlogin</code></p>
  
  <p>displaying:
  <img src="https://i.stack.imgur.com/RHcLB.png" alt="img3"></p>
  
  <p>I have controllers setup like:
  <img src="https://i.stack.imgur.com/8Ukwj.png" alt="img4"></p>
  
  <p>What gives here? When I visit <code>http://localhost/VAw_CI</code>, it is effectively loading the <code>views-&gt;pages-&gt;homepage.php</code> view properly, but it seems any other view doesn't work am I missing some path setup somewhere for pages <em>other</em> than the index (homepage.php) in my case?</p>