Multi-site with Sitecore

Happy New Year 2020 to you and your family. Have a nice year a head 🙂

Sitecore provides multi-site as an out of the box feature. We can use this feature in case our client has number of sites and s/he is willing to have all on Sitecore then using one Sitecore license, we can configure all these sites with minimal efforts.

We will create one more site and will name it as ‘local.sitecore92.com’.

Creating a new site in Sitecore instance (e.g. http:// local.sitecore92.com) involves three step process:

Step-1:

Configure your site hostname in Sitecore Instance. There are two ways to add new site in your Sitecore instance.

1) Add <site> element under <sites> section in sitecore.config file (C:\inetpub\wwwroot\SitecoreDemo.sc\App_Config\Sitecore.config)
1

2) Add <site> element under <sites> section in SiteDefintion.config file
2

You will find SiteDefintion.config.example file at C:\inetpub\wwwroot\SitecoreDemo.sc\App_Config\Include\Examples\.
You need to copy this file in the Include folder and remove the .example extension in order to use.

Now you may be wondering which one is good option. It is good to add new site in SiteDefinition.config file because it’s always advisable not to touch default config files and override your custom settings in config files situated under App_Config folder provided by Sitecore.

After adding new site in config file, there are two more steps need to be performed out of Sitecore to access newly added site.

Step-2:

Add your site hostname in IIS binding
3

Step-3:

Add your site hostname in hosts file (under WINDOWS\System32\drivers\etc\ folder)
4

After completing these three steps your newly added Sitecore website is ready to access.
5

In this blog, we learnt to create multi site in the existing Sitecore instance.

Thank you.. Keep Learning.. Keep Sitecoring.. 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s