I have an app built on CI which was hosted at domain.com and now I have installed Wordpress on main domain and moved CI to domain.com/folder. I set the base URL to domain.com/folder but it's not working. All folders were in root directory public_html.
Here's image of folders (don't know if it will be helpful):
Controller that loads landing page:
public function index()
{
$this->load->view('client/home_view');
}
public function logout()
{
$client_id = $this->session->userdata('client_id');
$this->db->where('id', $client_id);
$data = $this->db->get('client');
$workforce = $data->row();
$country_name = $workforce->country_name;
if($country_name == 'Estonia')
{
$this->session->unset_userdata('client_logged_in');
redirect('Random');
}
else
{
$this->session->unset_userdata('client_logged_in');
redirect('Client');
}
}