Drupal Multisite: Less Work, More Output
Maintaining an online presence often forces companies to build multiple websites, with a site for each brand, product, or country. Keeping up with dozens or even hundreds of websites can quickly turn into an expensive, time-consuming effort.
Highlights
Maintaining an online presence often forces companies to build multiple websites, with a site for each brand, product, or country. Keeping up with dozens or even hundreds of websites can quickly turn into an expensive, time-consuming effort.
Luckily, Drupal is here to help. Multisite functionality is built into Drupal.
A Drupal multisite provides you the opportunity to create multiple websites using the same codebase. With that said, all sites would be different from one another, serving different audiences. The cost of managing a multisite platform is substantially lower than that of managing hundreds of separate websites.
At Drupal, we have several ways to accomplish multisite functionality. The following case study will describe some architectures that make this possible. Read on to identify which option is best tailored to your needs.
Classic Drupal Multisite Architecture
Websites share code (the Drupal core, modules, and themes), but each website has its own database so they do not share content, configuration, or settings. Each website can also contain some extra modules/themes under its own subdirectory in the same codebase. A multisite is accomplished by creating different folders for the various websites in the /sites/ folder of the Drupal system.
For example:
/sites/Site 1/
/sites/Site 2/
/sites/Site n/
We can control which website will use which modules and themes by placing them in the correct folders, accessible only for specific sites.
- Autonomous content and users Drupal core code and library updates only need to be done once
- Some degree of customization is possible, because each site can have its own custom theme and modules
- New contrib or custom modules can be shared across the sites, and then individual sites can enable them and import the configuration from them
- Config Split module may be used to segment what configuration is shared across sites and what should be overridden on each site
Multi-Domain Architecture
This architecture consists of a single codebase and single database/installation. The Domain Access suite of modules provides functionality that allows multiple sites (domains) to be served from this setup. It also allows you to categorize your content as shared or unique. If you like, you can choose a specific piece of content for one particular domain, then share it across all sites.
- Less effort spent on development
- Maintain and update a single Drupal installation
- Admin users can effortlessly manage all content from one platform
- Content and users can be shared across multiple sites
- Identical features and functionality across all sites
Multi-Locale Architecture
Multi-Locale allows for the use of language-based regional targeting, utilizing the power of multilingual capabilities for multiregional targeting. This is recommended for sites targeting multiple regions.
Using the Drupal multilingual system, you can translate any piece of content to different languages. The admin interface has built-in translations for 94 languages.
The domain name may be used to determine the language. Specifying "example.com" as the language domain for English and "example.de" as the language domain for German will result in content being shown only in the respective language for each domain.
- Minimal effort spent on development
- Maintain and update a single Drupal installation
Distribution Profile Architecture
Drupal distribution provides everything you need to start your web projects, from the required modules and libraries to custom modules and themes, and from the configuration to the default content. It’s a website starter pack.
Drupal distribution focuses on a particular business and adds features specific to it into one installation, so it takes less time to configure the most common elements of a Drupal website.
For example, if you’re looking to build Drupal websites for hospital management, your Drupal developers can pre-configure modules for patient registrations, investigations, pharmacy management, etc., and also configure roles for admins, doctors, patients, and nurses. Now, when you want to deploy the same Drupal solution (or one similar to it) for a different hospital, much of the work is already done.
- Sites are independent from each other: code errors or traffic spikes on one site don’t affect other sites
- Flexibility: sites can be customized more easily (as long as they don’t override configuration provided by the base distribution and can still receive functionality updates)
Related insights
Let's start with a complimentary consultation
Whether you have a small urgent task, or a large ambitious project, we can help