Welcome Guest, Not a member yet? Register   Sign In
muti domain support.
#1

Hi,

In CI3 , it was:

    if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
    $ssl_set = "s";
    } else {
    $ssl_set = "";
    }
    */

    //$config['base_url'] = 'http'.$ssl_set.'://'.$_SERVER['HTTP_HOST'];

in CI4, if statements do not seem to work and give a 500 error.
What is the best way to use/detect multiple subdomains/domain ?

    public $baseURL = ??


The SaaS application that I am trying to port from CI3 works like

subdomain1.domain.com
subdomain2.domain.com ..   -- can also be mapped to domain2.com 



I am checking how to achieve the same in CI4 ?


Thanks,
Reply


Messages In This Thread
muti domain support. - by admin0 - 02-04-2019, 03:01 AM
RE: muti domain support. - by kilishan - 02-04-2019, 07:05 AM
RE: muti domain support. - by puschie - 02-11-2019, 06:06 AM
RE: muti domain support. - by puschie - 09-14-2021, 12:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB