Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Felipe Gubert 10 posts 90 karma points
    Oct 10, 2018 @ 15:07
    Felipe Gubert
    0

    Multiple sites with Multiple Languages

    Hello, i'll have 3 different sites under the same umbraco install, and each site will have 3 languages. So, i've created the first site, and then i'll duplicate to the second and third language. All of them will be accessed as: http://site.com/pt http://site.com/en http://site.com/es

    But how can i make the http://site.com/ redirect to one of them? or even have a landing page for them to select the language? My structure is as follows: enter image description here

    As you can see, "Site Master" would be my http://site.com/ and PT would be http://site.com/pt

    I can make http://site.com/pt works, but not http://site.com/, as i cannot change the main link of this, and adding domain, also asks me for a language.

    I can achieve what i want here?

  • Marc Goodson 2141 posts 14344 karma points MVP 8x c-trib
    Oct 10, 2018 @ 20:34
    Marc Goodson
    0

    Hi Felipe

    There are a few different approaches to this kind of site, but I think from what you are describing...

    if you right click your Site Master, and choose Culture and Hostnames, Add a new domain for site.com. You will need to set the language here. (but you will override this on subsequent Site pages)

    Any request to the root domain, site.com will go to the Site Master, you can add a template to the Site Master, that loops through the children 'site pages' to give visitors to the domain the choice of languages. (or you can put a redirect in this template to take visitors to the preferred languages site)

    Because the PT page is created directly underneath the Site Master, it will automatically have the url https://site.com/pt

    (but if you add the property with alias umbracoUrlName to the document type, you could call it Portuguese Homepage, and set the umbracoUrlName to be pt, to maintain the required url.)

    Anyway you should still right click it and choose 'Culture and Hostnames' and set the Language to be Portuguese, and this will override the languages setting for this page and all it's child pages.

    regards

    Marc

Please Sign in or register to post replies

Write your reply to:

Draft