title: CodeIgniter not working with subfolders
body: <p>I have my codeigniter code in web root. The mod_rewrite is enabled.. I checked through phpinfo.php. Now the code structure is something like this</p>
  
  <pre><code>  controllers/home.php(default controller)
    controllers/products.php (not listed in routes.php under config)
    and then a subfolder
    controllers/members/login.php
  </code></pre>
  
  <p>The urls I am trying are</p>
  
  <pre><code> domain_name/ ---------&gt; works
  </code></pre>
  
  <blockquote>
    <p>(Note: this is where my echo base_url is pointing me to I guess
    because $config['index.php'] = '', But even setting it to index.php is
    not pointing me to the working index.php url)</p>
  </blockquote>
  
  <pre><code>  domain_name/products ------&gt; doesn't work
      domain_name/index.php/products ------&gt; works
      similarly 
      domain_name/members -----&gt;doesn't work
      domain_name/index.php/members ---&gt;work
  </code></pre>
  
  <p>Because this thing is working with index.php I am guessing the routes.php is working fine. But some how echo $base_url is pointing me to these without index.php urls.</p>
  
  <p>I have tried the .htacess file which is in my webroot that is /var/www/
     The version for codeigniter is 2.1.3</p>
  
  <p>Please help. I want this to work with or without index.php and if you can explain what i am missing please give me explaination.</p>