![]() |
Setting baseURL in Registrar not working - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Setting baseURL in Registrar not working (/showthread.php?tid=92897) |
Setting baseURL in Registrar not working - petewulf1 - 05-13-2025 Hey guys, the registrar does not seem to work (at least for me). I followed th documentation and set it up like so: ------------------- Code: <?php I always get the error Fatal error: Uncaught CodeIgniter\Exceptions\ConfigException: Config\App::$baseURL "/" is not a valid URL. in ...\vendor\codeigniter4\framework\system\HTTP\SiteURI.php:201 Autodiscovery is set to true. Its only workig if a manually set the baseURL in App.php but the URL should be set dynamically based on the environment. CI3 was way more comfortable and dynamic to set up. Anybody knows the problem? Thanks and kind regards, Daniel RE: Setting baseURL in Registrar not working - michalsn - 05-14-2025 The baseURL you will set has to be listed in the allowedHostnames array. |