Quantcast
Channel: Sitecore Notes
Viewing all articles
Browse latest Browse all 3

Best way to configure Multi Site in Sitecore

$
0
0

Friends, in this post we will see how to configure multi site in Sitecore.

Brian Pedersen already written very nice article on it. Please refer below link for the same.

http://briancaos.wordpress.com/2010/03/01/working-with-multiple-sites-in-sitecore/

But in this post we will configure multisite in different way.

Mostly people are adding new <site> node for the new site in Web.config as shown in below screen capture.

Sitecore WebConfig Node

It is always good practice to add new config files under \App_Config\Include\ folder whenever you are extending Sitecore Pipelines, Processors, Events, etc…

If you notice Sitecore provides SiteDefinition.config.example file under \App_Config\Include\ folder. We are going to modify this file to setup multisite.

Let’s say we have two sites for different regions. One is for India and other is for US. Below is the Sitecore item structure for the same.

Sitecore Content Tree

We have to follow just few steps.

  1. Rename SiteDefinition.config.example file to SiteDefinition.config
  2. You can see Sitecore by default provided one example of <site> node just change the startItem and hostName that’s it. You can add as many nodes as you want. Below is sample screen capture for the same.

Sitecore SiteDefinition AppConfig Node

Make sure you added host entries and binded all it in IIS. You can also refer below link for the same.

Run multiple sitecore sites from one installation

Now try to access site with hostnames that you have added in SiteDefinition.config.

That’s it we are done. Hope you enjoy this.


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images