![]() |
i test multi domain in codeigniter 4.3 but dont work, can someone show me.
PHP Code: public string $baseURL = 'http://localhost:8080/ciall/ci4/ci43/public/'; in home.php controller i echo base_url() it default Code: base_url= http://localhost:8080/ciall/ci4/ci43/public/ 1. i want if i write localhost:8080 base_url echo http://localhost:8080/ciall/ci4/ci43/public/ 2. if i write http://123.1.1.3:8080/ciall/ci4/ci43/public base_url() echo http://123.1.1.3:8080/ciall/ci4/ci43/ thank your for reading
Try
PHP Code: public array $allowedHostnames = ['123.1.1.3:8080'];
Sorry, I misused.
PHP Code: public array $allowedHostnames = ['123.1.1.3']; |
Welcome Guest, Not a member yet? Register Sign In |