O'Reilly logo

Umbraco User's Guide by Paul Sterling, Nik Wahlberg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required