![]() |
How to setup allowedHostnames? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9) +--- Thread: How to setup allowedHostnames? (/showthread.php?tid=89094) |
How to setup allowedHostnames? - MichalVas - 01-07-2024 Hi, I want to try multiple subdomains for the Codeigniter 4 installation. I deployed the new/empty project Codeigniter v4.4.4 on shared hosting. It works fine I see the welcome screen on my hosting https://myhosting.com/ I set the allowed hostname foo.myhosting.com in App.php in the Config folder. Code: public array $allowedHostnames = ['foo.myhosting.com']; I expected that I would see the same welcome screen on foo.myhosting.com. Instead, I got the error Not Found The requested URL was not found on this server. Did I forget to set something else? Or do you need to change the .htaccess file? Thanks! RE: How to setup allowedHostnames? - kenjis - 01-11-2024 Did you configure your web server (Apache?) to accept https://foo.myhosting.com/ ? |