Copied to clipboard

Flag this post as spam?

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


  • Sean Dooley 289 posts 528 karma points
    Sep 18, 2018 @ 15:33
    Sean Dooley
    0

    Multiple multi-lingual websites under a single domain authority

    Following a client request I'm looking at the possiblity of hosting multiple multi-lingual Umbraco websites under a single domain authority.

    Below is the current websites setup, corporation.com and brand.com are single Umbraco installations.

    • corporation.com/en-gb
    • corporation.com/en-us
    • brand.com/en-gb
    • brand.com/en-us

    Below is the request the client has made to how they would like the websites to be hosted under a single domain authority.

    • corporation.com/en-gb
    • corporation.com/en-us
    • corporation.com/brand/en-gb
    • corporation.com/brand/en-us

    I've been playing around with having the brand website setup up as a virtual directory without any luck.

    corporation.com
        App_Browsers
        App_Data
        App_Plugins
        bin
        brand (virtual directory)
        Config
        Media
        Umbraco
        Umbraco_Client
        views
    

    And I get the following error

    It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

    Converting it to a virtual application, I get the following error

    Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'ImageProcessorModule'

    And I've also tried having the brand website as a reservedPath in web.config, i.e.

    corporation.com
        App_Browsers
        App_Data
        App_Plugins
        bin
        brand (reservedPath in web.config)
        Config
        Media
        Umbraco
        Umbraco_Client
        views
    

    I'd really appreciate any suggestions.

  • Marc Goodson 2155 posts 14408 karma points MVP 9x c-trib
    Sep 18, 2018 @ 19:32
    Marc Goodson
    0

    Hi Sean

    If you 'right click' the top level Umbraco item in your content tree and choose 'Cultures and Hostnames'. you'll see you have the option to specify a domain and culture for this part of the Umbraco tree.

    So it's possible to have multiple sites defined in the Umbraco content tree with different URLs, Umbraco will map the requests to your correct site content.

    enter image description here enter image description here

    There are a few ways to tackle your setup, but one way would be to create:

    • Corporation Site (Site Homepage)
      • en-gb (Site Language Homepage)
      • en-us (Site Language Homepage)
      • Brand (Brand Site Landing Page)
        • en-gb (Brand Site Language Page)
        • en-us (Brand Site Language Page)

    Creating actual content pages under relevant Language page...

    This would generate the urls you are after (you can add a property called umbracoUrlName, and change the portion of the Url for the particular page in your tree)

    ... if that makes sense?

    regards

    Marc

  • Sean Dooley 289 posts 528 karma points
    Sep 19, 2018 @ 07:08
    Sean Dooley
    0

    Hi Marc

    Thanks for your suggestion.

    At the moment the websites are built in separate Umbraco installations so I would need to bring all the content over and a slight restructure but your approach of bringing all the websites into one Umbraco installation is definitely an option.

Please Sign in or register to post replies

Write your reply to:

Draft