question : SaaS style URLs , HMVC , Dev Footer |
(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. 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 |
question : SaaS style URLs , HMVC , Dev Footer - by admin0 - 06-15-2018, 12:22 PM
RE: question : SaaS style URLs , HMVC , Dev Footer - by InsiteFX - 06-16-2018, 03:27 AM
RE: question : SaaS style URLs , HMVC , Dev Footer - by admin0 - 06-16-2018, 04:04 AM
RE: question : SaaS style URLs , HMVC , Dev Footer - by InsiteFX - 06-16-2018, 09:31 AM
RE: question : SaaS style URLs , HMVC , Dev Footer - by admin0 - 06-19-2018, 06:15 AM
RE: question : SaaS style URLs , HMVC , Dev Footer - by InsiteFX - 06-20-2018, 04:08 AM
RE: question : SaaS style URLs , HMVC , Dev Footer - by admin0 - 06-24-2018, 04:34 AM
|