Configuring Enterprise Sites

by: Mari Jørgensen

The other day I was setting up my first EPiServer CMS 5 Enterprise site, using the following technical note as a guide. I had some trouble getting *internal links to work - *internal meaning links within the same EPiServer database, but on another site.

Take the scenario of a solution with 6 sites, where 4 are using the same source files, and the other 2 are separate installations - all using the same database.  Sharing the database enables use of common page templates, as well as ”easy access” to information (pages) on other sites.

pageTree_SeparateSiteAccording to the technote, you should add a new site setting to web.config for all sites sharing the same set of files. The other two installations' web.config files contained only one site setting (since it was not shared). 

If the other site sections are not added to web.config, the startpage icons will be missing from the pagetree. To the left you see that the sites in red are not recongnized as separate sites by EPiServer.

If you press a pagelink on one of the other sites, EPiServer will load the page information correctly but keep the context of the current site.

  

pageTree_commonsites What I want to achieve is to switch site whenever the user selects a link that belongs to another site. I'm using property type Page ( which gives us access to the complete page tree ), though the page is not on the same website.

In order for this to happen, all web.config files need to contain site information for all 6 sites, even if not sharing source files. Otherwise EPiServer will not be able to identify that the page belongs to another site.

15 January 2008


Comments

  1. I'm using EPiServer 4.61 with the Enterprise license and created 2 sites that share the same codebase. These sites have the key 'EPsHostUrl' correctly setup in web.config - so one is accessed like www.site1.com, and the other www.site2.com. Now I've renamed both of these pages to have the friendly url name 'Default.aspx', hoping that typing www.site1.com/Default.aspx will get site1's start page, while www.site2.com/Default.aspx will get site2's start page. But it doesn't seem to work - typing www.site1.com/Default.aspx seems to pickup the site2's page, and auto change the URL to www.site2.com/Default.aspx. While typing www.site2.com/Default.aspx stays the same. Any ideas how I can separate these two pages, but keep same page name?
  2. Configuring Enterprise sites for version 4.6x is quite different from version 5.

    Not sure what you mean by: "Now I've renamed both of these pages to have the friendly url name 'Default.aspx'...".

    Have you set the EPnStartPage value to the id of your startpage, for each site? Try reading this technical note:  Configuring Enterprise Edition for 4.x

     /Mari

Post a comment    
User verification Image for user verification  
EPiTrace logger