what i'm trying to do is to remove the index.php file in my urls in CodeIgniter following this documentation:
http://www.codeigniter.com/userguide3/general/urls.html#removing-the-index-php-file
I wrote .htaccess file with thid code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
But when i try to access the url: http://127.0.0.1/my-site/admin, this is redirected to http://127.0.0.1/dashboard
This is my base_url config:
$config['base_url'] = 'http://127.0.0.1/my-site';
And this is routes.php file:
$route['default_controller'] = 'home';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
$route['admin']='admin/index';
$route['admin/login']='admin/login';
Any help would be appreciated!