title: remove the index.php from url
body: <p>I'm using the last version of <code>CodeIgniter</code>, and want to remove the <code>index.php</code> from my url, and this is how my <code>.htaccess</code> file looks like :</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
   RewriteEngine On
   RewriteBase /ci/ 
  
   RewriteCond %{REQUEST_URI} ^system.*
   RewriteRule ^(.*)$ /index.php?/$1 [L]
  
   RewriteCond %{REQUEST_URI} ^application.*
   RewriteRule ^(.*)$ /index.php?/$1 [L]
  
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule ^(.*)$ index.php?/$1 [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>My base folder's name is <code>ci</code>, and my application folder's name is : <code>application</code>, and in my <code>config</code> file, I have this :</p>
  
  <pre><code>$config['index_page'] = '';
  </code></pre>
  
  <p>I searched about other solutions, but none of them has worked.</p>
  
  <p>These are some of theme I tried :</p>
  
  <h1>Solution 1 :</h1>
  
  <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]
  </code></pre>
  
  <h1>Solution 2 :</h1>
  
  <pre><code>RewriteEngine On
  RewriteBase /ci/
  RewriteCond %{REQUEST_URI} ^system.*
  RewriteCond $1 !^(index\.php|images|js|uploads|css|robots\.txt)
  RewriteRule ^(.*)$ /index.php/$1 [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L]
  </code></pre>
  
  <h1>Solution 3 :</h1>
  
  <pre><code>RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule .* index.php/$0 [PT,L]
  </code></pre>
  
  <h1>Solution 4 :</h1>
  
  <pre><code>RewriteEngine on
  RewriteCond $1 !^(index\.php|uploads|css|js|lib|img|bootstrap|robots\.txt)
  RewriteRule ^(.*)$ /ci/index.php/$1 [L]
  </code></pre>
  
  <h1>Solution 5 :</h1>
  
  <pre><code>DirectoryIndex index.php
  RewriteEngine on
  
  RewriteCond $1 !^(index\.php|(.*)\.swf|forums|images|css|downloads|jquery|js|robots\.txt|favicon\.ico)
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ ./index.php?$1 [L,QSA]
  </code></pre>
  
  <p>How can I solve this problem ?</p>