Case 1 (without the home item)
Prev Next
 

If your multiple sites solution does not include the Home item, you should use web.config definitions of such kind:

  <!-- Funds Site -->
      
<site name="funds" hostName="funds.company.com" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content" startItem="/funds" database="web" domain="extranet" allowDebug="true" cacheHtml="true" htmlCacheSize="10MB" enablePreview="true" enableWebEdit="true" enableDebugger="true" disableClientData="false" />
      
<!-- Insurance Site -->
      
<site name="insurance" hostName="insurance.company.com" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content" startItem="/insurance" database="web" domain="extranet" allowDebug="true" cacheHtml="true" htmlCacheSize="10MB" enablePreview="true" enableWebEdit="true" enableDebugger="true" disableClientData="false" />
    
<!-- Capital Management Site -->
      
<site name="capital" hostName="capital.company.com" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content" startItem="/capital management" database="web" domain="extranet" allowDebug="true" cacheHtml="true" htmlCacheSize="10MB" enablePreview="true" enableWebEdit="true" enableDebugger="true" disableClientData="false" />
      
<!-- Retirement Site -->
      
<site name="retirement" hostName="retirement.company.com" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content" startItem="/retirement" database="web" domain="extranet" allowDebug="true" cacheHtml="true" htmlCacheSize="10MB" enablePreview="true" enableWebEdit="true" enableDebugger="true" disableClientData="false" />
    
<!-- Corporate Site -->
      
<site name="corporate" hostName="company.com" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content" startItem="/corporate" database="web" domain="extranet" allowDebug="true" cacheHtml="true" htmlCacheSize="10MB" enablePreview="true" enableWebEdit="true" enableDebugger="true" disableClientData="false" />
      
<site name="website" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content" startItem="/home" database="web" domain="extranet" allowDebug="true" cacheHtml="true" htmlCacheSize="10MB" enablePreview="true" enableWebEdit="true" enableDebugger="true" disableClientData="false" />
The contentStartItem for the shell site should be renamed from “/Home” (default) to “/” so the resulting path (rootPath + contentStartItem) is “/sitecore/content”. This is necessary in order to eliminate the “context links”. If the contentStartItem is set to one of the custom sites, then linking to this site from the rich text field will produce an empty “/” href attribute.
<site name="shell" virtualFolder="/sitecore/shell" physicalFolder="/sitecore/shell" rootPath="/sitecore/content" startItem="/home" language="en" database="core" domain="sitecore" loginPage="/sitecore/login" content="master" contentStartItem="/" enableWorkflow="true" xmlControlPage="/sitecore/shell/default.aspx" browserTitle="Sitecore" />

The startItem attribute should be left intact since this parameter is used for the core database as well: startItem="/home".


Prev Next