Is it possible to use the same Drupal code base for different Drupal sites, just by changing settings.php
and the database settings, and accessing it through a subdomain?
|
||||
|
coleopterist is right. Let's say you want mydomain.com and sub.mydomain.com to share the same codebase, you will have to put two folders in sites/ :
If you want modules and themes to be available to all domains defined in sites/, all you have to do is to put them in all/ :
Then, in sites/{domain}/settings.php you can redefine the databases strings like so :
Note that you should launch the DrupalRoot/install.php script for each different domain to create its database tables. |
|||
|