Unable to remove index.php in Codeigniter <p>I want to remove index.php to access my controllers directly. However, I cannot directly go my controller. I have to use index.php. For example: I want to go <a href="http://example.com/my_controller/method" rel="nofollow">http://example.com/my_controller/method</a> instead of <a href="http://example.com/index.php/my_controller/method" rel="nofollow">http://example.com/index.php/my_controller/method</a></p> <p>By the way, I used my test server, not local server like XAMPP. I enabled apache mod rewrite in my server. </p> <p>I tried a lot of htaccess rules, conditions but I cannot work it. Please help me!</p> <p>This is my .htaccess file:</p> <pre><code>&lt;IfModule mod_rewrite.c&gt; RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] &lt;/IfModule&gt; </code></pre> <p>my config.php:</p> <pre><code>$config['index_page'] = ''; $config['uri_protocol'] = 'REQUEST_URI'; </code></pre> <p>How can I go directly?</p>