Sitecore Experience Accelerator

Manage multiple sites with the SXA Site Manager

Abstract

Resolve site conflicts.

The SXA content architecture includes tenants and sites. SXA supports multitenancy, which means that you can run multiple sites on a single instance of Sitecore. Each tenant can include multiple related sites, for example, to support multiple brands for a single company or multiple languages or locations for a single brand. By default, a new site has the * (wildcard) host mapping. If multiple sites are using the same host name and virtual folder, some of your sites may not be accessible. To solve this, you use the SXA Site Manager.

The SXA Site Manager dialog box displays a list of all SXA sites on your Sitecore instance. The icons D719CD5F27FD4517826A7B5E525C5319.png718EF25410F8462096C8B0564B36D9C9.pngindicate whether the site can be accessed or whether there is a conflictA8FE62202A3F47819CEAE805CB279BFF.png.

Note

The yellow icon can indicate that a site will not resolve on the current environment, but could be accessible on another environment.

If a site cannot be accessed, the Hidden domains column describes what is blocking the site. For example, in the following screenshot the Sub site A is blocked by the Master website because it uses the same host name and a virtual folder.

C379D9302B084CA8A0886C55572FBAE9.png

Note

In the upper-left corner of the SXA Site Manager dialog box, you can export the contents of the site overview in CSV, Excel, HTML, JSON, and XML.

By default, sites are rendered in the following order: Sitecore sites, SXA sites, EXM sites, other sites.

If your SXA sites are not resolving correctly, because of compatibility with other modules, you can mark other sites to be resolved before or after SXA sites by adding the site name and resolve="before" or resolve="after" to the Sitecore.XA.SitesToResolveAfterSxa.config (/App_Config/Include/z.Foundation.Overrides)

003419100BC84B999F485F014E425D85.png

To manage multiple sites with the SXA Site Manager:

  1. Click the Sitecore Start button, and from the Powershell Toolbox, click SXA Site Manager.

    54753482A5694A36B92FEC2D8CC88C9D.png
  2. In the SXA Site Manager dialog box, to resolve the site conflicts, you can:

    • Move the site – click the site and on the ribbon, click Move Up.

      597EA81420DE4C4AACCEA64EB557BC35.png

      Note

      To select and move multiple sites, press and hold the CTRL key when you select the sites.

    • Correct the site definition – click the site and on the ribbon, click Open. In the Basic section, change the site name, environment, virtual folder, or the host name.

      Note

      The Valid for environment field defines where the site is resolved. Allowed values are empty string, *, or an environment name without blank spaces. The environment name is defined in the Sitecore.XA.Foundation.Multisite.config file.

      A1BBB7C18D7F4F4184D263DF4FFA5D76.png
  3. When you have resolved all the conflicts, on the ribbon click Publish.