I've tried going over similar questions asked here before and tried out couple of solutions, however, they doesn't seem to work.
I have a folder called "projectX" in my localhost root directory which is a CodeIgniter project
This project has a controller called dashboard.
The dashboard is accessible by going through this link http://localhost/projectX/index.php/dashboard
However, if I try to do it without index.php (http://localhost/projectX/dashboard) it says Not Found.
Here's what my .htaccess file looks like (the file is outside application folder and in root directory of projectX folder)
RewriteBase /projectX
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/system.*
RewriteRule ^(.*) index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+) index.php?/$1 [L]
Here's my config file :-
$config['base_url'] = "http://localhost/projectX/";
/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = '';
/*
What am I doing wrong?