Computer Magic Logo
Setup the website

Sunday, August 9, 2015

Published by Aristotelis Pitaridis

Before we begin we will have to explain what is going to be the format of a Multilanguage URL for each web page. Usually a noon Multilanguage Umbraco page has a URL like this:

We will try to change it so that we will have multiple copies of the contact page, one for each language and we will have to add in the URL a language identification. This means that if we have English and Greek we will have to have the following two URLs for the contact page.

The first thing that we have to do is to create a new clean Umbraco web site which will be used for our example. When the web site is ready we have to make a very important change in the Web.config file which is located in the root folder of the web site. We use any text editor and we find the following line.

<add key="umbracoHideTopLevelNodeFromPath" value="true" />

We change the attribute value and we type the value false. Umbraco usually try to hide the top level nodes from the URL path. In a Multilanguage web site we want the top level node of the URL to be used as the language identification so we have to change this value to false.