Welcome Guest, Not a member yet? Register   Sign In
question : SaaS style URLs , HMVC , Dev Footer
#7

(06-20-2018, 04:08 AM)InsiteFX Wrote: You should not need any of that, the ,htaccess file that comes with CodeIgniter 4 checks all that for you.
You should just need to set the base url to the https://server_name

Sorry .. let me try to rephrase (english is not my first language)

I have a SaaS style project where people get dynamic subdomains
so when companyA signs up, the base URL is companyA.domain.com
if they set it to company.com and forward to our A record, then the app is displayed as company.com

in CI3, the following allowed to setup a dynamic base_url

if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on"){$ssl_set = "s";} else{$ssl_set = "";}
public $baseURL = 'http'.$ssl_set.'://'.$_SERVER['HTTP_HOST'];


what is the equivalent method to do that in CI4, so that we can still continue to develop SaaS applications where accessing the same via multiple subdomains or multiple-domain name is possible.
Reply


Messages In This Thread
RE: question : SaaS style URLs , HMVC , Dev Footer - by admin0 - 06-24-2018, 04:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB