redirect url helper redirect to localhost |
(05-08-2015, 01:53 AM)rtorralba Wrote: Hi, Hi rtorralba, if i not get you wrong, what you mean is without define base_url is only working for CI 2 but not for CI 3. So i guess what you want is a dynamic base_url. What you can do is.. PHP Code: $config['base_url'] = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http"); update this base_url, this script will auto help you defined base_url and even work in localhost. (05-13-2015, 07:19 PM)Edwin Wrote:(05-08-2015, 01:53 AM)rtorralba Wrote: Hi, This is worse than leaving it blank ... it ignores security checks. (05-13-2015, 07:19 PM)Edwin Wrote:(05-08-2015, 01:53 AM)rtorralba Wrote: Hi, I already knew, but the question was why in ci 2 it was not necessary and in ci 3 is necessary. |
Welcome Guest, Not a member yet? Register Sign In |