Last Updated: February 25, 2016
·
847
· emanuelcoelho1986

Remove Codeigniter index.php

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]