We are developing an application that would be offered as a hosted solution. I am struck with understanding how can i use multiple sites with same code without duplicating base code.
eg: website 1: www.example.com and website 2: www.sample.com will run on same code, but would have different configuration settings, and different theme... like we run our own domain names in wordpress.
i wish to know how can i do this.
also in case of database.. would it be better i create individual databases for each website or use the same database with website ID as a column in each table.
pls help me.
[clarification] its not domain alias. like... it would be a service. where different clients will be offered the same application on their own domain name with different theme. something like what blogger does.. with own domain names but same blog application
[technology] specifically am looking at how to use the host name to determine which configuration to use we are using PHP and MySQL