I\'m running a LAMP environment with CodeIgniter. I want to be able to use its URL pattern, like, http://localhost/controller/function/ID, but by default it has
http://localhost/controller/function/ID
RewriteEngine on RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico) RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
The simple one in .htaccess on root folder! Works for me.