title: Removing index.php using .htaccess not working on codeigniter hostgator
body: <p>Basically I want to remove index.php in my url.</p>
  
  <p>I think my .htaccess is not working on Hostgator and I've already searched my problem on these .htaccess, codeigniter and hostgator. <br/></p>
  
  <p>This is my folder structure in hostgator <br/></p>
  
  <blockquote>
    <p>/cgi-bin <br/> /httpdocs <br/>
    &nbsp;&nbsp;&nbsp;&nbsp;|---/application <br/>
    &nbsp;&nbsp;&nbsp;&nbsp;|---/system <br/>
    &nbsp;&nbsp;&nbsp;&nbsp;|---.htaccess <br/>
    &nbsp;&nbsp;&nbsp;&nbsp;|---index.php <br/></p>
  </blockquote>
  
  <p>My <code>.htaccess</code></p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?/$1 [L]
  </code></pre>
  
  <p>My <code>config.php</code></p>
  
  <pre><code>$config['base_url'] = 'www.example.com'; // this is only an example because our website is confidential
  $config['index_page'] = '';
  $config['uri_protocol'] = 'AUTO';
  </code></pre>
  
  <blockquote>
    <p><strong>Edit:</strong> Sorry for being idiot. I contacted the Hostgator after I posted this question and try the answers below. They say that I'm
    running on <code>Windows server</code> not <code>Apache server</code> so my <code>.htaccess</code> will
    not work so I need to convert it to <code>web.config</code>. Sorry for those
    wasted time to answer this question. Thank you</p>
    
    <p><strong>Edit:</strong> I mark @Deep Parekh's answer as correct as @David said that it worked properly</p>
  </blockquote>