Skip to content

Create a site

Create a site with the quick-create wizard and change what makes it a site in its Identity section.

Needs Sites content and Sites UI

Part of Sites content and Sites UI.

Sites are content: you create them on each environment (Deployment).

Before you start

Create the site

  1. Go to All sites at /admin/sites and click Add site.
  2. Enter the Site name. The ID derives from it; Edit next to it changes it. The ID is set once: lowercase letters, digits and underscores, at most 32 characters.
  3. Under Structure, choose Main site or Sub-site.
  4. Enter the Hostname of a main site, or the Main site and Path prefix of a sub-site. The wizard proposes the hostname and the path prefix from the name.
  5. Choose the Site type. The question appears when more than one site type exists.
  6. Click Create site.

The Add site form for Initech with Main site chosen, the proposed hostname and Content site as site type.

The Add site form with Structure and Site type answered and the hostname proposed from the name.

The new site opens on its dashboard and starts disabled. Its launch checklist leads through the remaining steps and ends with enabling the site. drush sites:create asks the same questions (Drush).

Change a site

Edit in the Site panel of the dashboard opens the Identity section at /admin/sites/{site}/identity.

Field What it holds
Title The site's name; also the name visitors see until the site sets its own (Site settings).
Hostname Where a main site answers. Changing it moves every address; enter the old one under Hostname aliases to redirect it. The Environments tab sets one per environment (Hostnames).
Structure, Main site Main site or Sub-site, and the main site of a sub-site. Locked.
Path prefix Where a sub-site answers under its main site. Changing it moves every address; nothing redirects the old ones.
Inherit settings from the main site A sub-site setting left empty takes the main site's value.
Run by the main site's people See Delegate a site.
Enabled Whether the site answers (Disable and delete a site).

It also holds the locked ID, the Region, the Canonical link (Canonical and hreflang) and the Weight.

A site keeps its site type, and stays a main site or a sub-site of the same main site. To have it elsewhere, create a new site or clone it.

Every save writes a revision of the site with author, time and a log message such as "Identity edited." Revisions have no admin page.