Sitecore AI Multisite Explained: Site Collections and Shared Sites for Multiple Brands
Sitecore AI Multisite Explained: Site Collections and Shared Sites for Multiple Brands
How one SitecoreAI environment can run multiple brands and regions, and what developers need to know to build it properly.
Almost every enterprise Sitecore project I have seen starts with one website and ends up with ten. A new brand, a new country, a campaign microsite, a partner portal. If every one of them needs its own CMS instance, the cost and the maintenance grow fast.
SitecoreAI is built to handle this properly. In this first part, I will cover how multiple sites are organized, how a shared site works, and what the developer side looks like. Part 2 covers languages and item versions.
The big picture: from organization to site
Before we talk about sites, it helps to know the layers above them. This is how the SitecoreAI documentation describes them:
- Organization is managed in the Sitecore Cloud Portal. It controls who can access which product and what they can do.
- Project is a logical grouping of environments, for example development, testing and production.
- Environment is the running SitecoreAI instance where your content lives. Projects and environments are managed through the Deploy app, the Deploy API or the Sitecore CLI.
- Site collection and site are where the multisite story happens, and that is the focus of this blog.
One honest note: the SitecoreAI documentation does not market a feature called "multi-tenancy" as such. What you actually get is this layered model, with site collections giving each group of sites its own share of the instance. That is how I explain the multi-tenant idea to customers, and I will use that wording carefully below.
What is a site collection?
In SitecoreAI, every site must live inside a site collection. A collection groups sites that either need to share resources or are authored by the same team. Per the documentation, a collection can give its sites a dedicated share of the instance, including data templates, configuration, user management and non-functional properties.
Multiple brands
Brands that share resources or a common authoring team can sit in one collection.
Multiple locations
One brand with several country or regional sites belongs together in a collection.
Separate collections
Unrelated business units can get separate collections, so they stay isolated from each other.
Two rules to remember before you design
- Sites cannot be moved between collections after creation.
- All sites inside one collection must use the same site template, to avoid inheritance problems.
The first rule is the one that bites in real projects. Decide your collection boundaries during architecture, not after the first site goes live.
To create and manage collections and sites, a user needs the Admin or the Sitecore Client Site Managing role. In the Channels area, authors see their sites as tiles grouped by collection, can search them, reorder them by drag and drop within a collection, and duplicate a site inside the same collection.
The shared site concept
This is the feature that saves the most effort in a multi-brand or multi-country setup. A site in a collection can be marked as a shared site, which acts as a "master" site. Components, partial designs, page designs and data sources you configure there can be used by the other sites in the same collection.
A marketer builds the global header and footer partial designs once in the master site.
How authors turn it on
- In Channels, open the collection and go to the tile of the site you want to share.
- Open the Options menu, then Settings.
- On the General tab, in the Site sharing section, switch on Share site.
Developers can also do this in the Content Editor: open the site collection item, scroll to the Sharing section and move the site into the Selected pane. You can share more than one site, but then naming of your data items matters a lot, otherwise finding the right item from the right site becomes confusing.
If you later unshare the site, the data sources, presentation and settings are no longer available to other sites. Whatever was already used on existing pages stays as it is, and previously created links do not break.
What can be shared
| Shared item | Why it helps |
|---|---|
| Page designs and partial designs | Consistent layout, header and footer across sites |
| Data sources (promos, videos) | Reuse the same content item in many sites |
| Styles and variants | Impose master site styling on local sites |
| Pages (delegated area) | Control selected pages from one central place |
Delegated areas and clones
Beyond presentation and data sources, you can also share pages. Pages cloned from the master site into a local site stay linked to the original. If you edit a field in the original and save it, the cloned items are updated. When the delegated area option is used, the cloned items cannot be changed locally, so permissions should be set carefully at the master site level. This works well for something like blog posts that should appear on every site without manual copying.
Also read the documentation notes on personalization and analytics for cloned items. Personalization rules defined on the source item do not carry over to the clone, so plan that part of the journey separately.
Cross-site linking
By default a Link only offers pages from its own site. In the site's Settings, under Site Configuration, the Link Settings field can be set to Itself only (default), Linkable sites in site collection or All linkable. The target site also needs its Linkable Site option checked in its site grouping settings.
Benefits for customers
Lower effort
One environment and one codebase can serve many sites.
Brand consistency
Shared designs keep every local site on-brand.
Faster launches
Site templates and duplication help teams spin up new sites quickly.
Clear ownership
Collections let different teams own different groups of sites.
Developer guide: how the head app finds the right site
On the content side, every site has its own content tree, hostname or hostnames, and default language. On the rendering side, your head application (for example Next.js) needs to decide which site an incoming request belongs to. The SitecoreAI documentation calls this multisite resolution.
The idea is simple. Every Delivery or Preview GraphQL query that touches content takes a site argument. So for each request, your app maps the hostname to a site name and passes it along. The site details (name, hostname, language, root path) can be read from a site information query on the Edge GraphQL API, which means the mapping is driven by what is configured in SitecoreAI and not hardcoded in your app.
- Content SDK apps have a multisite setting in
sitecore.config.ts. When multisite is enabled, the default site name acts as the fallback site. Preview mode always has multisite on so everything can be previewed. - Files and internal routes (for example anything under
/sitecore/*and your own API routes) should be excluded from site resolution. - The URL structure comes from the content tree. Authors organize pages hierarchically and that becomes the URL, so custom URL patterns need coordination with the content team.
- For ASP.NET Core headless apps, the Rendering SDK has a
MultisiteMiddlewarethat resolves the site by host and path, and allows ansc_sitequery parameter override, handy for local testing without changing DNS.
My checklist from experience
- Decide collection boundaries first, since sites cannot be moved later.
- Keep one site template per collection.
- Put global header, footer and shared components into one clearly named master site.
- Use clear naming for shared data sources, so authors can find them.
- Test hostname resolution locally using the site override, then on real hostnames.
- Set permissions on the master site, because changes can affect every local site.
One environment, many sites, one set of shared building blocks.
That is the real strength of site collections and shared sites.
Localization in SitecoreAI: Languages, Versions and Language Fallback
How to run one site in many languages, and how multiple versions of the same item work.
Comments
Post a Comment