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.
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...
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.
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
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?
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
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?
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.
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!
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.
Did you find any solution to this problem?
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.
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
Make sure you "republish entire site" before testing if it works.
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
I am having the same issue too in umbraco 4.7.
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
Hi Jan,
I've created the conten like this:-
Content
- Site 1 (domain=www.site1.com language=EN-US)
- Site 2 (domain=www.site2.com language=EN-US)
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
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
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?
There is information and an untested (at least by me) fix in here : http://umbraco.codeplex.com/workitem/23342
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.
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
Hi,
Can you also share this with me? My e-mail address is shercorp_fantine @ yahoo.com.
Hi Sebadtien and Sherry,
file sent.
Tammy, can I have your fix as well? dan.west *at* corbis dot com
Thanks!
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!
Sébastien Richer: welcome.
dotNetDan: file sent.
@Tammy: Thanks!
If anyone still has that file to fix this issue, could you send it to me too?
bart *at* licious *dot* be
FYI the coming 4.11 release should fully support that type of scenario!
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!
is working on a reply...