In the project I am setting the following code in config.php:
$config['index_page'] ='index.php?';
In .htaccess the following code is set:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
The directory structure is:
site_name
----ci_folder
-------application
---------- controller
---------- view
---------- model
--------system
-------.htaccess