Monday, 9 September 2013

Select database used depending on URL

Select database used depending on URL

Is there any way I can have a single codebase connecting to different
databases depending on the URL used for access?
Example:
company1.example.com connects to database db_company1
company2.example.com connects to database db_company2

No comments:

Post a Comment