title: codeigniter remove index from url
body: <p>First of all i already did my homework using google.But dont have any idea about htaccess that's why i tried all possible solution.
  So don't consider this question as duplicate.</p>
  
  <pre><code>Codeigniter version : 3.1.3
  Php version :5.6.29
  Os : debian 8
  Web server : apache2
  </code></pre>
  
  <p>Problem : 
  if i am access default_controller route its working fine but if i am trying access any other route than its need index.php </p>
  
  <p>Want to access :</p>
  
  <pre><code>http://&lt;ip&gt;/folder_name/&lt;route&gt;
  </code></pre>
  
  <p>Working : </p>
  
  <pre><code>http://&lt;ip&gt;/folder_name/index.php/&lt;route&gt;
  </code></pre>
  
  <p>Config variables :</p>
  
  <pre><code>base_url =http://&lt;ip&gt;/folder_name/ //showing default controller and working fine.
  
  $config['index_page'] = '';
  $config['uri_protocol'] = 'AUTO';
  </code></pre>
  
  <p>Path:</p>
  
  <pre><code>Your_website_folder/
  application/
  assets/
  system/
  .htaccess &lt;——— this file
  index.php
  </code></pre>
  
  <p>Tried <em>.htaccess</em></p>
  
  <p>1.<a href="https://codeigniter.com/user_guide/general/urls.html" rel="nofollow noreferrer">Get from codeigniter</a> </p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L] 
  </code></pre>
  
  <hr>
  
  <p>2.</p>
  
  <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>