CodeIgniter Forums

Full Version: Same system and application folders for multiple sites/subdomains
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello community

I've built a web application on Codeigniter (Version 2, but I'm already planning to update to version 3). Every customer using the application has his own subdomain and database. So the folder structure is like that:

/public_html/customer1/index.php
/public_html/customer1/application/
/public_html/customer1/system/

/public_html/customer2/index.php

/public_html/customer2/application/
/public_html/customer2/system/

etc.

Now I'd like to use the same application and system folders for every customer. Still every customer should have his own subdomain and database (configuration) for accessing the web application.

Has anyone of you ever tried something similar? What would be best practice to realize this?