• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
question : SaaS style URLs , HMVC , Dev Footer

(06-20-2018, 05: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.

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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

Users browsing this thread:
1 Guest(s)

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.