Copied to clipboard

Flag this post as spam?

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


  • Kurisotofa 27 posts 75 karma points
    Apr 14, 2010 @ 02:17
    Kurisotofa
    0

    How to manage hostname & language settings in a setup with multiple domain names

    Hello all,

    I need to setup a quite complicated configuration for a client, using multiple domain names (root nodes) and possibly multiple languages on each domain name.

    An illustration :

    - Belgium.com (lang = EN)
    - Belgium.be
    -- Belgium.be/nl (lang = NL)
    -- Belgium.be/fr (lang = FR)

    - France.com (lang = EN)
    - France.de (lang = FR)

    In the case of the French website, there is no problem : for the root node "France.com" I can set "www.france.com" as hostname + "en_US" as language, and for the other root node "France.fr" I can set "www.france.fr" as hostname + "fr_FR" as language.

    For the Belgian website, however, I can't seem to find a solution. Of course, for my root node "Belgium.com" I need to set "www.belgium.com" as hostname + "en_US" as language (identical to the French setup). Then I tried to manage the sub node "Belgium.be/nl" with "nl.belgium.be" as hostname + "nl_BE" as language, but when I do that I seem to assign that configuration as well to my root node "Belgium.be" and (worse) my other sub node "Belgium.be/fr". I assumed it would be possible to assign the correct hostname (www.belgium.be) to the root node "Belgium.be" and 2 different fake hostnames (e.g. nl.belgium.be & fr.belgium.be) to each separate sub node "Belgium.be/nl" & "Belgium.be/fr"...

    I have already set "<useDomainPrefixes>true</useDomainPrefixes>" in umbracoSettings.config because all domains can have e.g. a node named "Blog" (blog.aspx).

    I also have "<add key="umbracoHideTopLevelNodeFromPath" value="true" />" in web.config for obvious reasons...

     

    Hope someone can help...

     

    Kind regards,

    Christof.

  • Anders Brännmark 228 posts 280 karma points
    Apr 19, 2011 @ 10:02
    Anders Brännmark
    0

    Did you find any solution to this problem?

  • Yannick Smits 321 posts 718 karma points
    Apr 19, 2011 @ 11:11
    Yannick Smits
    0

    problem is you want to use both true and false behavior of the useDomainPrefixes setting. What I usually do in these cases is to use subdomains. So instead of doing belgium.be/nl I would do nl.belgium.be.

  • Christer Josefsson 55 posts 93 karma points
    Apr 20, 2011 @ 17:14
    Christer Josefsson
    0

    This issue should supposedly be solved: http://umbraco.codeplex.com/workitem/23342?ProjectName=umbraco
    ..I don't think so, maybe it was once but not anymore, or the solution created another problem maybe??

    My tree structure:

    Content
    * domain.se
    ** sv
    ** en
    *sub.domain.se
    ** sv
    ** en

    One of the hostname setups I tried
    1) For domain.se (http://www.domain.se, Swedish)
    2) For domain.se/sv (http://www.domain.se/sv, Swedish)
    3) For domain.com/en (http://www.domain.se/en, English)
    4) For sub.domain.se (http://sub.domain.se, Swedish)
    5) For sub.domain.se/sv (http://sub.domain.se/sv, Swedish)
    6) For sub.domain.com/en (http://sub.domain.se/en, English)

    I tried all kinds of setup to make this happen, nothing worked.
    When I get localization working, the wrong content is loading and vice versa

  • Yannick Smits 321 posts 718 karma points
    Apr 21, 2011 @ 14:01
    Yannick Smits
    0

    Make sure you "republish entire site" before testing if it works.

  • Sherry Ann Hernandez 320 posts 344 karma points
    Sep 17, 2011 @ 11:37
    Sherry Ann Hernandez
    0

    Encountering the same issue. I'm using umbraco version 4.7.0

    I republish everything but if you check the debug trace the culture is always set to en-us which is the language set on the top node

  • Tammy 16 posts 36 karma points
    Nov 22, 2011 @ 08:17
    Tammy
    0

    I am having the same issue too in umbraco 4.7.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 22, 2011 @ 08:28
    Jan Skovgaard
    0

    Hi Tammy

    Could you give us some more information about the steps you have taken to set up multiple sites? Maybe you're missing the bindings in IIS?

    /Jan

  • Tammy 16 posts 36 karma points
    Nov 22, 2011 @ 08:49
    Tammy
    0

    Hi Jan,

    I've created the conten like this:-

    Content

    - Site 1 (domain=www.site1.com language=EN-US)

    • EN (domain=www.site1.com/EN language=EN-US)
    • CN (domain=www.site1.com/CN language=ZH-CN)

    - Site 2 (domain=www.site2.com language=EN-US)

    • EN (domain=www.site2.com/EN language=EN-US)
    • CN (domain=www.site2.com/CN language=ZH-CN)

     

    Already set useDomainPrefixes = True

    All things work fine, except when i view www.site1.com/CN, all dictionary text still using EN-US.

    Please advice.

     

    Regards,

    Tammy

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 22, 2011 @ 19:27
    Jan Skovgaard
    0

    Hi Tammy

    So the culture is being set properly on site2.com/CN ?but not on site1.com/CN? - Have you checked that binding has been set up in IIS as I suggested above? And have you double checked that the hostnames have been set properly in Umbraco on your sites root nodes?

    /Jan

  • Tammy 16 posts 36 karma points
    Nov 23, 2011 @ 02:53
    Tammy
    0

    Hi Jan,
     
    Actually I have set the culture in site1.com/CN and site2.com/CN but both also is having the same problem.
    When i viewed on site1.com/CN and site2.com/CN, the dictionary item is still giving me EN-US not ZH-CN text.
     
    Regards,
    Tammy

  • Sébastien Richer 194 posts 430 karma points
    Jul 10, 2012 @ 22:53
    Sébastien Richer
    0

    Ahh I have the exact same setup and issue as Tammy, I created another forum post about this issue, but this is the situation I have right now. Tammy did you ever get a solution up and running for this?

  • Sébastien Richer 194 posts 430 karma points
    Jul 10, 2012 @ 23:21
    Sébastien Richer
    0

    There is information and an untested (at least by me) fix in here : http://umbraco.codeplex.com/workitem/23342

  • Tammy 16 posts 36 karma points
    Jul 11, 2012 @ 04:23
    Tammy
    0

    Hi Sebastien,

    i already got an solution.

    Just paste a file in the App_Code folder.

    I can send you the file if you want.

  • Sébastien Richer 194 posts 430 karma points
    Jul 11, 2012 @ 14:35
    Sébastien Richer
    0

    Hello Tammy,

    I would be very interested! You can share this with me at my email sebastienricher *at* gmail dot com.

    Greatly appreciated, thanks

    Seb

  • Sherry Ann Hernandez 320 posts 344 karma points
    Jul 11, 2012 @ 16:41
    Sherry Ann Hernandez
    0

    Hi,

    Can you also share this with me? My e-mail address is shercorp_fantine @ yahoo.com.

     

  • Tammy 16 posts 36 karma points
    Jul 12, 2012 @ 03:46
    Tammy
    0

    Hi Sebadtien and Sherry,

    file sent.

  • dotNetDan 2 posts 22 karma points
    Jul 18, 2012 @ 21:45
    dotNetDan
    0

    Tammy, can I have your fix as well? dan.west *at* corbis dot com

    Thanks!

  • Sébastien Richer 194 posts 430 karma points
    Jul 18, 2012 @ 21:49
    Sébastien Richer
    0

    So finally, my implementation will work with subdomains.

    Site A
        FR
        EN

    Site B
        FR
        EN

    And with "Manage hostnames", I set my "homepages" to a default language and sitea.com (and siteb.com), since anyways they will be bilingual. Then language nodes map to fr.sitea.com and etc.

    Thanks the for help!

  • Tammy 16 posts 36 karma points
    Jul 19, 2012 @ 03:41
    Tammy
    0

    Sébastien Richer: welcome.

    dotNetDan: file sent.

  • dotNetDan 2 posts 22 karma points
    Jul 19, 2012 @ 22:01
    dotNetDan
    0

    @Tammy: Thanks!

  • Bart De Wachter 6 posts 27 karma points
    Nov 20, 2012 @ 17:45
    Bart De Wachter
    0

    If anyone still has that file to fix this issue, could you send it to me too?
    bart *at* licious *dot* be 

  • Stephen 767 posts 2273 karma points c-trib
    Nov 20, 2012 @ 18:05
    Stephen
    0

    FYI the coming 4.11 release should fully support that type of scenario!

  • Sébastien Richer 194 posts 430 karma points
    Jan 07, 2013 @ 17:03
    Sébastien Richer
    0

    Hi Stephen,

    Where can I find details about the adjustments in 4.11, almost all the sites I do are under this setup and I,m preparing community packages so I'd like to prepare then under the "proper" architecture. Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft