Fixed URLs with index.php value (work without mod_rewrite)

This commit is contained in:
alextselegidis 2015-05-20 23:18:46 +02:00
parent 3062e73d22
commit 845288e17d
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ class User extends CI_Controller {
}
public function index() {
header('Location: ' . $this->config->item('base_url') . '/user/login');
header('Location: ' . $this->config->item('base_url') . '/index.php/user/login');
}
public function login() {
@ -25,7 +25,7 @@ class User extends CI_Controller {
$view['dest_url'] = $this->session->userdata('dest_url');
if (!$view['dest_url']) {
$view['dest_url'] = $view['base_url'] . '/backend';
$view['dest_url'] = $view['base_url'] . '/index.php/backend';
}
$view['company_name'] = $this->settings_model->get_setting('company_name');