Welcome Guest, Not a member yet? Register   Sign In
Redirect
#1

[eluser]RogerM[/eluser]
I have a library and within its function it has a redirect method in it. Like so:

Code:
if($logged_out && $this->logged_in()){
            redirect('/admin');
        }
        
        if(! $logged_out && ! $this->logged_in()){
            $this->CI->session->set_userdata('redirected_from', $this->CI->uri->uri_string());
            redirect('admin/login');
        }

For some reason it is redirecting me to
http://localhost/index.php/admin/login instead of
http://localhost/SITENAME/index.php/admin/login

my config file base_url is http://localhost/iip/

Any thoughs


Messages In This Thread
Redirect - by El Forum - 10-22-2008, 11:13 AM
Redirect - by El Forum - 10-22-2008, 11:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB