title: CodeIgniter removing index.php from url
body: <p>My current urls look like this <code>[mysite]index.php/[rest of the slug]</code>.<br>
  I want to strip <code>index.php</code> from these urls. </p>
  
  <p><code>mod_rewrite</code> is enabled on my apache2 server. In <code>config</code>, <code>$config['index_page'] = '';</code> </p>
  
  <p>My codeignitor root <code>.htaccess</code> file contains, </p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule .* index.php/$0 [PT,L]
  </code></pre>
  
  <p>But still it is not working. Where am I going wrong? </p>