CodeIgniter Forums
Same system and application folders for multiple sites/subdomains - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12)
+--- Thread: Same system and application folders for multiple sites/subdomains (/showthread.php?tid=61595)



Same system and application folders for multiple sites/subdomains - bastian - 04-29-2015

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?