Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter with multiple subdomains
(This post was last modified: 01-09-2018, 05:52 AM by waqaskhanbhatti.)

Hi to all members,
I have a problem and hopefully we will solve it. The problem is,
I am creating an application this application has an “Admin Panel (Backend)” and Frontend.
The URL structure of the admin panel is like this
For frontend I have a different URL structure which is based on country for example.
It means in frontend I have multiple sub-domains. And the all these sub-domains are sharing a single database. As well as, backend is also sharing the same database.
Now my problem is how can I handle front-end like this.
Possible one solution in my mind is to copy app to all the sub-domains and connect with single database. And for admin panel copy it at the main domain. But in this case, if I have a single modification to application I have to update all the copies. I want to use only single copy of app to handle all sub-domains. 
Anyone have some solution for this problem. Thanks

Another duplicate. Be patient, don't spam.

Theme © iAndrew 2016 - Forum software by © MyBB