Description:We have three sites which were initially developed using sitecore (version 9.0.2) multisite with helix and sites are running live.
We have these three sites and two domains so our final urls for three sites are something like as follows:
1)www.site1.com
2)www.site2.com
3)www.site2.com/site3
That means site3 is running on a sort of virtual directory on the same domain where site2 is running.
My content structure shown in the following screenshot.
and my site's “SiteDefinition.config” looks like the following one.(In which site3 is mainly setup using 'virtualFolder,physicalFolder' can be seen in the following code)
<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<sites>
<site name="site1" patch:before="site[@name='website']"
enableTracking="true"
hostName="site1.sc"
virtualFolder="/"
physicalFolder="/"
rootPath="/sitecore/content/site1"
startItem="/Home"
notFoundItem="/404"
database="web"
domain="extranet"
allowDebug="true"
cacheHtml="true"
htmlCacheSize="50MB"
registryCacheSize="0"
viewStateCacheSize="0"
xslCacheSize="25MB"
filteredItemsCacheSize="10MB"
enablePreview="true"
enableWebEdit="true"
enableDebugger="true"
disableClientData="false"
cacheRenderingParameters="true"
renderingParametersCacheSize="10MB"
enableItemLanguageFallback="false"
enableFieldLanguageFallback="false"
/>
<site name="site2" patch:before="site[@name='website']"
enableTracking="true"
hostName="site2.sc"
virtualFolder="/"
physicalFolder="/"
rootPath="/sitecore/content/site2"
startItem="/Home"
notFoundItem="/404"
database="web"
domain="extranet"
allowDebug="true"
cacheHtml="true"
htmlCacheSize="50MB"
registryCacheSize="0"
viewStateCacheSize="0"
xslCacheSize="25MB"
filteredItemsCacheSize="10MB"
enablePreview="true"
enableWebEdit="true"
enableDebugger="true"
disableClientData="false"
cacheRenderingParameters="true"
renderingParametersCacheSize="10MB"
enableItemLanguageFallback="false"
enableFieldLanguageFallback="false"
/>
<site name="site3" patch:before="site[@name='site2']"
enableTracking="true"
hostName="site2.sc"
virtualFolder="/site3"
physicalFolder="/site3"
rootPath="/sitecore/content/site3"
startItem="/home"
notFoundItem="/404"
database="web"
domain="extranet"
allowDebug="true"
cacheHtml="true"
htmlCacheSize="50MB"
registryCacheSize="0"
viewStateCacheSize="0"
xslCacheSize="25MB"
filteredItemsCacheSize="10MB"
enablePreview="true"
enableWebEdit="true"
enableDebugger="true"
disableClientData="false"
cacheRenderingParameters="true"
renderingParametersCacheSize="10MB"
enableItemLanguageFallback="false"
enableFieldLanguageFallback="false"
/>
</sites>
</sitecore>
</configuration>
Posted by: Tabish Usman | Posted on: Dec 17, 2019
3
In my opinion there is a solution if you are able to move the site3 to a separate domain or subdomain then you can setup a separate site on iis for site3(that is only for content delivery purpose main instance remain same) ,in that case you will have following
1. One sitecore admin to access and manage content for ALL sites
2. Two file system with same or different code base
3. Separate domain or subdomain for site3 which means sitemap update required
4. Analytics tracking in one place
5. Two publishing targets for site1 and site2 and one for site 3
6. Two WEB databases and one MASTER
Replied by: Sam Smith | Replied on: Jan 01, 2020