I'm struggling with removing the 'index.php' part of my CodeIgniter URL. I'm using CodeIgniter version 3.1.2. I've followed all steps on other questions about this:
- Changed
$config['index_page'] = 'index.php'to$config['index_page'] = '' - Changed
$config['uri_protocol'] = 'AUTO'to$config['uri_protocol'] = 'REQUEST_URI' - Added a .htaccess file in the root folder of my project with the following code:
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
However when I try to access my site, I get the following error code.
Not Found
The requested URL /Toneel/Site/index was not found on this server.
The rewrite module is turned on in my Apache Server. Can anyone help me out with this issue?