Those who want to work on codeigniter may have face some problems when you want change the default url pattern. It’s a problem, But don’t worry only a couple of lines code will solve that problem.
Just create a .htaccess file in your codeigniter root directory and then simply paste the code.
RewriteEngine on
RewriteCond $1 !^(index.php|resources|robots.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]