We have a product developed in PHP Symfony framework. We have couple of clients right now for whom we are maintaining different code base and databases (MySql).
They access their respective code base using subdomain like client1.myproduct.com and client2.myproduct.com
Now we want to make a single code base for both the clients and only keep files which are different (in terms of logic) for both of them in separate subdomains.
So both the subdomains will point to the same code base but will access files from their respective subdomains whenever required i.e. whenever logic is different for some feature for both the clients.
Can anyone suggests what is the best way to go about this?
sites: [foo.com, bar.co.uk, http://www.mike.es]
Hope this helps