0

Requirement is multiple sub domains using same Database and different design For example my main site URL is www.mysite.com. My requirement is www.sub1.mysite.com www.sub2.mysite.com www.sub3.mysite.com

I also tried Drupal Domain

I am using drupal 8.6.

How can I achieve this requirement.

Yasir
  • 101
  • 2
  • 11
  • Do you want to reuse same drupal setup for all domains ? – Himanshu Batra Dec 07 '18 at 07:24
  • yes, but this is `www.mysite.com` parent website and all others are child. all sub domains have different design. – Yasir Dec 07 '18 at 07:27
  • you can get idea from here `http://www.uol.edu.pk/` this is parent web site and these are `http://isb.uol.edu.pk/` `http://sgd.uol.edu.pk/` `http://chem.uol.edu.pk/` subdomains. – Yasir Dec 07 '18 at 07:30

1 Answers1

0

You'll have to implement multi-site structure of DRUPAL 8 like this.

-- core
-- modules
   -- contrib
   -- custom
-- themes
   -- contrib
   -- custom
-- sites
   -- site1
         -- modules
            -- custom
            -- contrib
         -- themes
            -- custom
            -- contrib
         -- files
   -- site2
         -- modules
            -- custom
            -- contrib
         -- themes
            -- custom
            -- contrib
        -- files
   -- site3
         -- modules
            -- custom
            -- contrib
         -- themes
            -- custom
            -- contrib
        -- files

For reference, please check this link i.e. https://www.drupal.org/docs/8/multisite/multisite-folder-structure-in-drupal-8

For more technical articles or help, have a look at http://etutorialz.com

Himanshu Batra
  • 98
  • 1
  • 10
  • Can we use Single database for multi-site?. In documentation they states that `It is assumed that every site has its own database and code is shared as shown below`. – Yasir Dec 07 '18 at 07:54
  • No that would not be possible with this way. For that you have to use https://www.drupal.org/project/domain . It's quite complicated but feasible. – Himanshu Batra Dec 07 '18 at 08:02
  • I tried this but can't get success. I am not know how to configure this module. – Yasir Dec 07 '18 at 11:14
  • Please have a look at this video i.e. https://www.youtube.com/watch?v=E_rP74-GFFQ If it helps than mark my answer as solution. – Himanshu Batra Dec 07 '18 at 11:53
  • If this answer helped you than plz mark my answer as solution. – Himanshu Batra Dec 13 '18 at 04:15