1. Sites

The SXA site definition fields

Version:

In SXA, site definitions are done at the item level. This means that you do not have to restart a website after each change in the Sitecore.config file. You can create new sites with SXA without restarting your Sitecore instance.

You can change the site definition fields in sitecore/content///Settings/Site Grouping/. You can also access these fields from the SXA Site Manager. The SXA site definition items are equivalent to Sitecore nodes that you define within your config file if you build the site without SXA.

The following table lists the SXA site definition fields, their Sitecore equivalent (if any), and a description:

FieldSitecore equivalentDescription
Site NamenameThe name of the site. When you choose a name for the website, you must avoid using characters that are invalid for the website cookies. Therefore, do not use control characters, spaces (" "), semicolons, or commas in your website names. Do not use separators, for example, hyphens (“-”), with these reserved words: ancestor, and, child, descendant, div, false, following, mod, or, parent, preceding, self, true, xor.
Valid for environmentDefines the environment that the site is resolved for. Allowed values are empty string, *, or an environment name without blank spaces. You must define the environment name that this field refers to in your config file.
Target HostnametargetHostNameSpecifies the host name used while generating links and sitemaps.
Host NamehostNameDefines the host name that the site resolves to.
Virtual FoldervirtualFolderUse this field to resolve sites with the same host name but located in a different virtual folder.
Start ItemstartItemDefines the path to the root item of the site.
DatabasedatabaseDefines the database containing the items that Sitecore uses for rendering the site for visitors.
DomaindomainDefines the Sitecore security domain of the site.
Link Provider nameDefines the link provider. With SXA, you can select a different link provider for different sites. This can be useful when you have multiple sites that all have different link requirements.
Linkable SiteSelect to make a site linkable.
Other PropertiesPlace for additional attributes for SXA sites that you would normally have in your site definitions config file.

Sitecore or Sitecore modules might require other properties that were not explicitly specified in the Site Grouping node. You can configure these properties in the Other Properties field by specifying the key/value pair. These properties are then sent verbatim to Sitecore site provider.

For example, SXA does not have a port property that lets you specify which port your site is exposed under.

Another example: in an older version of SXA to enable language fallback for a site, you could add enableItemLanguageFallback and enableFieldLanguageFallback and set them to true.
LanguagelanguageThe default content language for the site.
Language EmbeddinglanguageEmbeddingSelect to show the language in the URL.
Enable item language fallbackenableItemLanguageFallbackSelect to enable item-level language fallback. For more information on enabling item-level language fallback, see Enable and set up language fallback, and scroll to the section about item-level fallback. Item-level language fallback is deselected by default.
Enable field language fallbackenableFieldLanguageFallbackSelect to enable field-level language fallback. For more information on enabling field-level language fallback, see Enable and set up language fallback, and scroll to the section about field-level language fallback. Field-level language fallback is deselected by default.
Allow DebugallowDebugControls whether presentation components collect profile and trace information, affecting whether the debugger renders information about those controls, and whether to show tracing and profiling commands in the debugging ribbon.
Cache HtmlcacheHtmlSelect to enable caching for your site.
Enable PreviewenablePreviewSelect to enable preview on the site.
Enable Web EditenableWebEditSelect to enable WebEdit mode for the site.
Enable DebuggerenableDebuggerEnable or disable debugging features, including tracing, profiling, and rendering information, and the debugging ribbon.
Disable Client DatadisableClientDataSelect to disable storage required for CMS user interfaces for the site.
Disable Browser CachingdisableBrowserCachingSet to Yes to disable browser caching for the site. Set to Default to have the value of the DisableBrowserCaching setting in the section determine browser caching for the site.
Login PageloginpageUse this field to assign a custom SXA login page.
Require LoginrequireLoginSelect to require users to log in to enter the site.
Html Cache Size (in MB)htmlCacheSizeThe maximum size of the html cache.
Registry Cache Size (in MB)registryThe registry cache size for the site.
View State Cache Size (in MB)CacheViewStateThe view state cache size for the site.
Xsl Cache Size (in MB)xslThe xsl renderings cache size for the site.
Filtered Items Cache Size (in MB)filteredItemsCacheSizeThe size of the cache used to store filtered items according to the filterItems attribute.
IndexesEnter your index specifications for the site. Always start with the database followed by a slash. You can then specify the language or use an asterisk (*) to include all languages.
SchemeschemeThe scheme that indicates the protocol type: http or https.
PortportThe port number of the incoming URL.
Dictionary domaindictionaryDomainThe default dictionary domain to use.
No publishable URLnoPublishableUrlThe URL of the page that handles errors if no publishable item or version of an item can be found.
No license URLnoLicenseUrlThe URL to redirect to if a license is missing.
No access URLnoAccessUrlThe URL to redirect to if access to an item is denied.
Link item not foundlinkItemNotFoundUrlThe URL to redirect to if the linked item is not found.
URL Layout not foundlayoutNotFoundUrlThe URL to redirect to if an item's layout is not found.
URL Item not founditemNotFoundUrlThe URL to redirect to if an item is not found.
URL Error page URLerrorPageUrlThe URL to redirect to if a generic error occurs.
If you have suggestions for improving this article, let us know!