Welcome Guest, Not a member yet? Register   Sign In
Questions on serving same code base to multiple sites
#2

[eluser]J Maxwell[/eluser]
If I understand you right, you are thinking of having a single system folder running 4 application folders? This is certainly possible, but you could consider doing this:

Another option would be to use a single install, then direct all of the domain names to the same place - making sure you have your Apache vhosts set up with UseCanonicalOn enabled, then set the base url to be the $_SERVER['SERVER_NAME'] variable.

This way, you'd only need to check the database for which site is being accessed, and then load the respective data/template/css etc from saved options in the database, or a config file.

In terms of DRY - this would be much better, meaning you only have a single codeset to maintain and a single change can be rolled out to the whole site effortlessly.

If you need a hand with any of it then PM me, or post here.

John


Messages In This Thread
Questions on serving same code base to multiple sites - by El Forum - 08-18-2010, 03:31 PM
Questions on serving same code base to multiple sites - by El Forum - 08-18-2010, 07:04 PM
Questions on serving same code base to multiple sites - by El Forum - 08-19-2010, 02:32 PM
Questions on serving same code base to multiple sites - by El Forum - 08-19-2010, 02:47 PM
Questions on serving same code base to multiple sites - by El Forum - 08-19-2010, 03:17 PM
Questions on serving same code base to multiple sites - by El Forum - 08-19-2010, 04:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB