Jorz
Jorz

Reputation: 358

Codeigniter: index.php? is removed when back button is pressed

My default page URL when I logged in looks like this:

http://localhost/project/index.php?/home

but when I press back button, the index.php? was removed and it became:

http://localhost/project/home

This results in error:

404 Not Found nginx/1.18.0

I need help. Thanks a lot!

Upvotes: 0

Views: 48

Answers (1)

Dipta Das
Dipta Das

Reputation: 402

go to config.php file. And change FROM $config['base_url']='http://localhost/project/'; TO $config['base_url']='http://localhost/project/index.php?/';

Upvotes: 1

Related Questions