CodeIgniter Forums
Multiple domain under same application. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Multiple domain under same application. (/showthread.php?tid=13862)



Multiple domain under same application. - El Forum - 12-09-2008

[eluser]gops[/eluser]
I have created one to-do list like application for specific industry.
How do i make different domain to use same application but different database (or different prefix on same database...).

i.e.

www.one.com is todo list for one company.
www.two.com is todo list for two company.

the code is same for both the company but the database is different.

Do I need to make separate folder for each application ? (that will make upgrade hard in case of bugs).

My currrent hosting provider is giving me different folder for each domain (bluehost.com).

Thanks.


Multiple domain under same application. - El Forum - 12-09-2008

[eluser]dmitrybelyakov[/eluser]
You may set all your domains to point (be aliases) to your main domain that holds the CI application and then use database profiles depending on the domain user entered. I think that approach may require some more digging ))


Multiple domain under same application. - El Forum - 12-09-2008

[eluser]Phil Sturgeon[/eluser]
Similar thread. Please search before posting.