Welcome Guest, Not a member yet? Register   Sign In
How to set dynamic url in Codeigniter 4?
#1
Question 
(This post was last modified: 03-14-2023, 11:37 AM by cijagani. Edit Reason: formating )

Q : how to set dynamic url in Codeigniter 4 ?

let's assume that  i have following informations / configurations are ready 

one domain : ci4multitenant.local  pointing to /var/www/html/myproject/public
i have 2 subdomains branch1.ci4multitenant.local  pointing to /var/www/html/myproject/public
branch2.ci4multitenant.local pointing to /var/www/html/myproject/public

configuration of .env file is here https://prnt.sc/2xsEA3pgBV7B

when i open ci4multitenant.local in browser debug bar works fine

but when i visit branch1.ci4multitenent.local or branch2.multitenant.local debugbar is not working / showing.

is there any way to set baseURL dynamically?
Reply


Messages In This Thread
How to set dynamic url in Codeigniter 4? - by cijagani - 03-14-2023, 11:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB