I\'ve looked in the documentation of Codeigniter of removing the index.php from the URL when accessing different views, the code shows how to remove it with apa
To remove index.php from URL just add
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
in the .htaccess file and move the .htaccess file near to index.php location
/var/www/CodeIgniter/index.php
/var/www/CodeIgniter/.htaccess
in config.php in config folder set
$config['index_page'] = '';