To solve your doubt, use the following lines:-
Open config.php and do following replaces
$config['index_page'] = "index.php"
to
$config['index_page'] = ""
In some cases the default setting for uri_protocol does not work properly. Just replace
$config['uri_protocol'] ="AUTO"
By
$config['uri_protocol'] = "REQUEST_URI"
For the .htaccess root file, use:-
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
Please remember that the .htaccess code varies depending on the hosting server. Do some hosting servers such as Godaddy need to use an extra ? This answer lies in the last line of the above code. The following line will be replaced with last line in applicable case:
// Replace last .htaccess line with this line RewriteRule ^(.*)$ index.php?/$1 [L,QSA]