Re: Location of new (Sub-) System [message #7589 is a reply to message #7588] |
Tue, 27 April 2021 04:44 |
AJM
Messages: 2367 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
Are the two domains (www.htmanager.de and www.hartz.biz) being run on the same server with the same DOCROOT? Is this second subsystem going to be available on the same menu system as the first subsystem? Is the first (existing) subsystem going to be only available on www.htmanager.de and the second (new) subsystem only available on www.hartz.biz?
It is possible to have both domains running in the same DOCROOT but still treated as different entities with different databases. In your config.inc file you can detect which domain is being accessed by looking at $_SERVER['SERVER_NAME'], then you can set the credentials you need, including the database prefix, for that particular domain. I do this all the time on my development PC where I have a different set of databases for each client that I support, but they all share the same code base.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|