Tuesday, February 7, 2017

Drupal 8 Multisite Creation




Goto /d8codebase/sites/sites.php file.

Add below array
$sites = array(

  'site1.com' => 'site1', // Domain name => Folder name.

  'site2.com' => 'site2',
);

Then create site1, site2 folders inside /d8codebase/sites/ folder

Like in D7, Inside site1 and site2 folders create separate settings.php and add the database and other configurations specific the site.

Add site1.com and site2.com in vhosts file.