Remove Codeigniter index.php

Posted on

Create a htaccess file with the code below where your index.php from Codeigniter Application is.

RewriteEngine On
RewriteCond %{REQUEST_URI} ^/system.*
RewriteRule ^(.*)$ index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?/$1 [L]

Leave a Reply

Your email address will not be published.