Quick start¶
Go from a fresh Drupal installation to two sites of one site type:
Acme on its own hostname, and Acme Jobs under it at /jobs.
Before you start¶
- Drupal installed with the Standard profile, and Sites in the codebase (Installation).
- A hostname for Acme, like
acme.example.com, that resolves to the server. With DDEV, add it toadditional_hostnames. - An account with Administer sites and Administer sites configuration.
- Work on the hub, the installation's own hostname.
Steps¶
-
Enable Sites and sub-sites:
drush en sites_content sites_path_prefix -
Trust the hostnames in
settings.php(Installation). - Go to Site types at
/admin/sites/types(Sites configuration > Site types) and click Add site type. - Enter the Label
Brand site. - Under Base site plugin, select Content site, and click Save.
- Go to All sites at
/admin/sitesand click Add site. - Enter the Site name
Acmeand choose Main site. - Enter the Hostname
acme.example.comand click Create site. The dashboard of the new site opens; the site is disabled. - In the Launch checklist, click Set up next to Enable the site.
- Check This site is enabled and click Save.
- Go to
/admin/sitesand click Add site again. - Enter the Site name
Acme Jobsand choose Sub-site. - Select Acme as the Main site, enter the Path prefix
jobs, and click Create site. - Enable Acme Jobs as in steps 9 and 10.

The Add site form for Acme Jobs as a sub-site of Acme.
Result¶
https://acme.example.com serves Acme, and https://acme.example.com/jobs
serves Acme Jobs. Each site has its own content, settings and people.
The site type keeps its defaults: its sites can hold content items, taxonomy terms, media, content blocks and users of every type, and offer no per-site roles. Next:
- Site types: choose what the type's sites hold, offer and set by default.
- Content on sites: put content on the sites.
- Launch a site: the rest of the launch checklist.