CodeIgniter Forums
Redirect - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Redirect (/showthread.php?tid=12525)

Redirect - El Forum - 10-22-2008

I have a library and within its function it has a redirect method in it. Like so:

if($logged_out && $this->logged_in()){
        if(! $logged_out && ! $this->logged_in()){
            $this->CI->session->set_userdata('redirected_from', $this->CI->uri->uri_string());

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

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

Any thoughs

Redirect - El Forum - 10-22-2008

Figured the problem out.

On my login form the form action was coming up incomplete. It didn't have the entire URL for my site and controller.

All works now!