three websites to share one folder - possible ?
lo there,
i have a project where i am building three websites that will work and behave the same, but need different stylesheets, and connect to different mysql databases ( set up identically ).
each site has its own domain, and i am doing this with apache virtual hosting. I want them all to share code because right now, if i expand one, i have to make the changes across three sites, which tripples my work in debugging, upgrading, etc...
So what i want, is a login page that is seperate from the others. This is where i would start a session that gives me the name of the database in a variable. Also would have a different template to load each company logo specific to that site.
What would be the easiest way for these to be set up ? I though of having the login as the index.php on each site, also the stylesheet and template, then have the rest of the site located in a sub directory, then using mount --bind to make them all the same across three sites.
Is there a better way to do this ?
thanks.
|