title: code igniter: how to get rid of index.php in url on windows?
body: <p>My windows hosts is: </p>
  
  <pre><code>127.0.0.1 example.com
  </code></pre>
  
  <p>My code works fine for: </p>
  
  <pre><code>http://example.com/index.php/home/myData/5
  </code></pre>
  
  <p>I am trying to get rid of index.php </p>
  
  <p>I added .htaccess on root :</p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L,QSA]
  </code></pre>
  
  <p>and changed my application/config/config.php to</p>
  
  <pre><code>$config['index_page'] = ""
  </code></pre>
  
  <p>My httpd.conf is: </p>
  
  <pre><code>NameVirtualHost *:80
         &lt;VirtualHost *:80&gt;
          DocumentRoot C:\Users\Proxymis\Desktop\sites\example.com
          ServerName example.com
          &lt;Directory C:\Users\Proxymis\Desktop\sites\example.com\&gt;
              Order allow,deny
              Allow from all
          &lt;/Directory&gt;
      &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>But when trying to fetch <code>http://example.com/home/myData/5</code> 
  I got a 404 error and apache log shows: </p>
  
  <pre><code> [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/EasyPHP-5.3.8.1/home/myData
  </code></pre>
  
  <p>What do I do wrong ?</p>