I'm using CodeIgniter v.3.0.4 and I'm unable to remove the 'index.php' from URL.
I've added the .htaccess file:
<ifmodule mod_rewrite.c=""> RewriteEngine On RewriteBase /project_01/ RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /index.php?/$1 [L] RewriteCond %{REQUEST_URI} ^application.* RewriteRule ^(.*)$ /index.php?/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L] </ifmodule> <ifmodule !mod_rewrite.c=""> ErrorDocument 404 /index.php </ifmodule>In application folder > config.php > I edited the value to:
$config['index_page'] = '';And:
$config['uri_protocol']= 'REQUEST_URI';And:
$config['base_url'] = 'http://localhost/Project_01/';I checked that my Apache server conf file does not have the pound sign next to the line:
LoadModule rewrite_module modules/mod_rewrite.so
What am I doing wrong? Or what am I not doing?
It worked fine in prior versions of CI, what changed?
localhost/Project_01/about?