From 845288e17d772910bb02448ccdba3523681a4044 Mon Sep 17 00:00:00 2001 From: alextselegidis Date: Wed, 20 May 2015 23:18:46 +0200 Subject: [PATCH] Fixed URLs with index.php value (work without mod_rewrite) --- src/application/controllers/user.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/application/controllers/user.php b/src/application/controllers/user.php index b6ef4ecf..7dd99ff4 100644 --- a/src/application/controllers/user.php +++ b/src/application/controllers/user.php @@ -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');