redirect controller - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: redirect controller (/showthread.php?tid=64126) |
redirect controller - ofir - 01-17-2016 Hi all i install the codeigniter on subfolder .. like http://www.site.com/subfolder its load my the main controller good (its login page). after i do the login good the redirect try now from the main domain and not from the subfolder.. Code: RewriteEngine On after i try to login this redirect me to http://www.site.com/contrroler and its need to be http://www.site.com/cms/contrroler but the main page load good http://www.site.com/cms/ also i did base_url in config RE: redirect controller - kenjis - 01-17-2016 Showing your code might help other people to understand your situation. How did you config `base_url`? And what's your controller code like? RE: redirect controller - ofir - 01-18-2016 the config is $config['base_url'] = 'www.agri-da.com/cms/'; if you will login to this page you will see login page .. if you will try to login its will redirect you but from the main .. for example : after the login on the cms folder its need to be dashboard. so the url need to be www.agri-da.com/cms/dashboard i see www.agri-da.com/dashboard what can i do ? RE: redirect controller - Diederik - 01-18-2016 You would have to look in your login controller, there you will probably find a redirect action that is performed after the login was successfully.If you post some relevant code we can help you a bit more. RE: redirect controller - kenjis - 01-18-2016 `base_url` should be `http://www.agri-da.com/cms/`. And what's the real HTTP header look like? |