Part of the Domain ecosystem · 53 projects
This project allows you to run multiple affiliated websites from a single Drupal installation and database, sharing users, content, and configurations. It supports distinct domain names, subdomains, and even custom ports for each site. The latest versions also introduce experimental support for distinguishing sites using path prefixes within a single domain.
The Domain project is a suite of modules for running a group of affiliated sites from one Drupal installation and a single shared database.
Overview
Domain lets you share users, content and configuration across a group of sites such as:
example.commy.example.comthisexample.com(any domain string works)example.com:3000(non-standard ports are treated as unique)example.com/section/(path prefix, 3.x and later)
By default, these sites share all tables in your Drupal installation. Each domain can then have its own content visibility, configuration overrides, theme and more.
Which version should I use?
Branch Drupal Status 4.x ^11.4 || ^12 Alpha, Drupal 12 support 3.1 (3.x branch) ^10.2 || ^11 Beta 3.0.x ^10.2 || ^11 Stable, recommended for production 2.0.x ^10.2 || ^11 Stable, feature complete, bug fixes onlyNew sites should start on 3.0.x, or on 4.x to prepare for Drupal 12.
Key features
Configuration overrides with Config Collections
Since 3.x, per-domain configuration overrides are stored in Drupal core's Config Collections system instead of a custom override system. This keeps Domain aligned with core's configuration management: overrides are exported, imported and deployed like any other configuration.
Path prefixes (experimental)
Since 3.x, several domains can share a single hostname and be told apart by the first segment of the URL path:
example.com/corporate/: a corporate divisionexample.com/retail/: a retail divisionexample.com/fr/: a French-language variant
This helps sites that cannot add new hostnames because of corporate firewalls, shared hosting or single-origin CDN constraints, or that simply prefer to keep affiliated sites under one domain.
Content access per domain
The Domain Access module uses Drupal's Node Access system to decide what content is available on each site in the network. Unlike other multi-domain solutions, it grants access based on the domain the user is currently viewing, not on a group or site the user belongs to.
Installation
Install with Composer, for example for the stable 3.0 line:
composer require 'drupal/domain:^3.0'
No core changes are required, but some settings must be edited in services.yml. See the README and the documentation for details.
Domain uses some advanced Drupal concepts and requires that you understand and control your site's DNS configuration.
Companion modules
- Domain Path: domain-specific path aliases
- Domain Redirect: domain-aware redirects, so the same source path can redirect to different destinations per domain
- Domain Extras: additional per-domain features
- Domain Theme Switch: a different theme per domain
Documentation
Credits
Thanks to everyone who has contributed code, reviews, tests, translations and support over the years.
History
Domain was created by Gurpartap Singh in November 2006. Original development was sponsored by Morris DigitalWorks with an assist from DZone.
Articles and talks from the Drupal 6 and 7 era:
- Sharing content with Domain Access (Trellon case study)
- Row Eleven Wine Co. case study
- Managing Multiple Sites with Domain Access (DrupalCon Paris 2009, video)
- Contributed modules for Domain Access (Drupal 7)
- Domain Access for Drupal 7 documentation
Ask your assistant about Domain
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
29 tracked projects depend on this one
- Domain Theme Switch 2,673 sites
- Domain Access Entity 2,053 sites
- Domain Path 1,990 sites
- Domain Menus for Domains 1,091 sites
- Domain Menu Access 1,078 sites
- Domain Site Settings 962 sites
- Domain Access Search API 756 sites
- Domain Path Redirect 658 sites
- Domain Country Path 476 sites
- Domain Access Logo 333 sites
- Domain Login Restrict 221 sites
- Group Context: Domain 160 sites
- Domain Config Pages 151 sites
- Domain Menu Links 121 sites
- Domain Redirect 86 sites
- LocalGov Microsites Group 83 sites
- Domain Route Access (UI) 40 sites
- Domain Role Access 36 sites
- Domain Llms Txt 25 sites
- TacJS for Domains 20 sites
- Multidomain and Multilanguage Google Tag Manager 16 sites
- Domain Twig 11 sites
- Domain Role 9 sites
- Domain color 3 sites
- Domain Fields Visualization 1 sites
- Domain Analytics (for Tagmanager or Google Analytics) 1 sites
- Domain Base Css
- Domain Role Synchronization
- LocalGov Microsites Domain Alias
More in the Domain ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 2.0.0-rc1 | Pre-release | 10–11 | Jan 6, 2026 | ||
| 3.0.0-alpha14 | Pre-release | 10–11 | Dec 23, 2025 | ||
| 3.0.0-alpha13 | Pre-release | 10–11 | Nov 17, 2025 | ||
| 2.0.0-beta8 | Pre-release | 10–11 | Nov 12, 2025 | ||
| 3.0.0-alpha12 | Pre-release | 10–11 | Nov 10, 2025 | ||
| 3.0.0-alpha11 | Pre-release | 10–11 | Nov 3, 2025 | ||
| 2.0.0-beta7 | Pre-release | 10–11 | Oct 27, 2025 | ||
| 3.0.0-alpha10 | Pre-release | 10–11 | Oct 27, 2025 | ||
| 3.0.0-alpha9 | Pre-release | 10–11 | Oct 13, 2025 | ||
| 3.0.0-alpha8 | Pre-release | 10–11 | Oct 6, 2025 |