Dynamic $baseURL for multiple hosts |
I am developing an app that will have multiple domains and subdomains pointed at it. I would like to have CodeIgniter automatically detect the Base URL.
In Config/App.php it says this: PHP Code: /* I also have this line commented out in my .env file: Code: # app.baseURL = '' I am receiving this error: You have an empty or invalid base URL. The baseURL value must be set in Config\App.php, or through the .env file. How can I dynamically set the Base Site URL to use for multiple sites pointing to the app? |
Messages In This Thread |
Dynamic $baseURL for multiple hosts - by muncherelli - 08-26-2020, 08:04 PM
RE: Dynamic $baseURL for multiple hosts - by LynxCoder - 08-27-2020, 02:51 AM
RE: Dynamic $baseURL for multiple hosts - by pippuccio76 - 08-27-2020, 03:10 AM
RE: Dynamic $baseURL for multiple hosts - by Chroma - 08-27-2020, 04:10 AM
RE: Dynamic $baseURL for multiple hosts - by John_Betong-002 - 08-27-2020, 03:53 PM
|