Return to doc.sitecore.com

  scheme
Prev Next

The scheme attribute in the web.config file in the <sites> section matches the SiteInfo.Scheme parameter.

<sites>
<site name="website" scheme=”http”... />
</sites>

This parameter influences link formation by the LinkManager class. If this parameter is not defined in the web.config <site> section, then LinkManager can return a link in the following format: “://home.html” without the protocol identifier “http” or “https”. This happens if the code was executed in the non-http context, for example, WebDAV or in a thread. In http context a link will be generated with the protocol identifier “http” or “https”.


Prev Next