I use the codeigniter framework for development, the problem is that I have the following url http://localhost:8080/proyecto/index.php/home/
, with this url everything works from 'wonder' everything is loaded correctly, but if I use this url http://localhost:8080/proyecto/index.php/home
if I remove the against slash of the home /
the page is loaded but the data is lost, then the idea is that when that slash is removed, redirecting it http://localhost:8080/proyecto/index.php/home/
..
this is the function:
public function index()
{
if($this->session->userdata('login'))
{
$this->load->view('home');
}
else
{
redirect(site_url());
}
}
I would appreciate your collaboration ...