SiteDefinition.config for Sitecore 9
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/" xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:env="http://www.sitecore.net/xmlconfig/env/"> | |
<sitecore> | |
<sites> | |
<!--Local--> | |
<site name="[ProjectName]" inherits="website" | |
rootPath="/sitecore/content/ProjectName" | |
hostName="*" | |
targetHostName="ProjectName.local.com" | |
patch:before="site[@name='website']" /> | |
<!--Develop--> | |
<site name="[ProjectName]" | |
set:hostName="ProjectName.develop.company.com" | |
env:require="Develop" /> | |
<!--Beta--> | |
<site name="[ProjectName]" | |
set:hostName="manage.beta.client.com" | |
env:require="Beta" | |
role:require="ContentManagement"/> | |
<site name="[ProjectName]" | |
set:hostName="beta.client.com" | |
env:require="Beta" | |
role:require="ContentDelivery"/> | |
<!--Live--> | |
<site name="[ProjectName]" | |
set:hostName="manage.client.com" | |
env:require="Live" | |
role:require="ContentManagement"/> | |
<site name="[ProjectName]" | |
set:hostName="client.com" | |
env:require="Live" | |
role:require="ContentDelivery"/> | |
</sites> | |
</sitecore> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment