title: How to remove the index.php from url in codeigniter project
body: <p>I am creating a website in Codeigniter. This is very common issue I know and there are lots of solutions on Stack Overflow. I try almost all but nothing is helpful for me. </p>
  
  <p>I just want to remove index.php from my url. Anybody please tell me how can I do it? </p>
  
  <p>I have removed index.php from the config file's <code>$config['index_page']</code> section</p>
  
  <p>I also checked  <code>$config['uri_protocol'] = 'AUTO';</code> mode try both mode auto and <code>REQUEST_URI</code>.</p>
  
  <p>My .httaccess file structure right now is this:</p>
  
  <pre><code>&lt;IfModule authz_core_module&gt;
      Require all denied
  &lt;/IfModule&gt;
  &lt;IfModule !authz_core_module&gt;
      Deny from all
  &lt;/IfModule&gt;
  
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine on
  RewriteCond $1 !^(index\.php|resources|robots\.txt)
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L,QSA] 
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>Can anybody please tell me how to do it? </p>