Codeigniter redirect URL issue

I am new to codeigniter. I have just made a login feature in CI with the help of google, but here I am redirecting to URL on login but It is not working.
Here is the details
after redirecting the link is like this http://localhost/xpensepedia/index.php/home
which is giving the 404 error

404 Page Not Found
The page you requested was not found.

and my controller is

public function index() {
        if (($this->session->userdata('user_id') != "")) {
        } else {

My files are in the image
enter image description here

Source: .htaccess

Leave a Reply