title: How to remove index.php from codeigniter in Fast-cgi
body: <p>Having problems with mod_rewrite in Fast-cgi environment for CodeIgniter. My .htaccess looks like this : </p>
  
  <pre><code>    DirectoryIndex index.php
      RewriteEngine on
      RewriteCond $1 !^(index\\.php|images|css|js|robots\\.txt|favicon\\.ico)
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)$ /index.php?$1 [L] 
  </code></pre>
  
  <p>But I got an error ‘No input file specified’. </p>
  
  <p>I changed to </p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^.* - [L]
  
  RewriteCond $1 !^(index\.php|images|robots\.txt)
  #RewriteRule ^(.*)$ /index.php?/$1 [QSA,L]
  
  &lt;IfModule mod_php5.c&gt;
      RewriteRule ^(.*)$ index.php/$1 [L]
  &lt;/IfModule&gt;
  
  &lt;IfModule !mod_php5.c&gt;
      RewriteRule ^(.*)$ index.php?/$1 [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>It works only with this one also : </p>
  
  <pre><code>#RewriteRule ^(.*)$ /index.php?/$1 [QSA,L]
  </code></pre>
  
  <p>My problem is that I still have the index.php on the URL, if I changed the configuration file application/config/config.php from $config['index_page'] = 'index.php'; to $config['index_page'] = ''; I have a different error. </p>
  
  <p>What I do wrong ?</p>