![]() |
Redirect - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Redirect (/showthread.php?tid=12525) |
Redirect - El Forum - 10-22-2008 [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()){ 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 Redirect - El Forum - 10-22-2008 [eluser]RogerM[/eluser] 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! Roger |