I am stuck with removing index.php
.
mod Rewrite is enabled in my apache, I have checked earlier
my url
http://localhost/projects/ci/admin
Here is my controller
class Admin extends CI_Controller{
public function index()
{
echo "Admin Function";
}
}
here is my .htaccess file, which I copied from Codeigniter user_guide
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
done everything to run it:
changed
$config['base_url'] = '';
to $config['base_url'] = 'http://localhost/projects/ci/';
changed $config['uri_protocol'] = 'REQUEST_URI';
to $config['uri_protocol'] = 'AUTO';
and vice-versa
also $config['index_page'] = 'index.php';
to $config['index_page'] = '';
with the help of stackoverflow solutions but failed to do so.