SETTING UP MULTIPLE SITES

To have Umbraco route incoming requests to the appropriate sites in the installation, you must set up hostnames for Umbraco to “listen” for. The examples throughout this chapter have the Runway site set up to be translated into two languages: English and Swedish.

To support multiple sites and entry points for your Umbraco installation, you must leave the default setting of umbracoHideTopLevelNodeFromPath as true. This tells Umbraco to exclude the Content node from the path, thus pointing to the first second-level node as the homepage. In the following examples, you will instruct Umbraco to map a configured hostname to the correct second-level node in the content tree.

Next you must set up your Umbraco installation to have at least two second-level (in the context of the content tree) nodes so that you can set up the necessary hostnames. Because this example is a multi-lingual setup, the steps show how to add another language, Swedish, to the installation as well as how to copy the Runway site that was installed in Chapter 1 and paste it under the Content node:

  1. Navigate to the Settings section of your installation.
  2. Right-click the Languages node and click the Create menu item.
  3. Select Swedish (Sweden) from the drop-down list, and click the Create button.
  4. Navigate to the Content section in the Umbraco backoffice.
  5. Right-click the Runway Homepage node and click the Copy menu item, as shown in Figure 7-1.
  6. In the resulting dialog, select Content by clicking ...

Get Umbraco User's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.