|
|
 Rank: Enthusiast
Joined: 11/27/2007 Posts: 15
|
Hi, If we have a website called www.mywebsite.com and would like to have the website use the URLs www.mywebsite.com/en/ for the english version and www.mywebsite.com/de/ för the german version. Is this possible in Umbraco instead of using a new domain or subdomain for every website you put up? I guess I could just set up to diffrent subnodes called "en" and "de" and put my multilingual sites below these, but then I won't be able to make use of Umbracos built in Dictionary which translates some of the attributes in my templates. Any ideas? Thanks in advance! Regards, Tony
|
|
 Rank: Addict
Joined: 2/19/2007 Posts: 741 Location: Belgium
|
Hi Tony, This is possible. The way I do it, is I create dummy domains( like nl.mysite.com and fr.mysite.com ) and set the usedomainprefixes to false in the umbracosettings.config. Code:
<useDomainPrefixes>false</useDomainPrefixes>
Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
|
|
 Rank: Enthusiast
Joined: 11/27/2007 Posts: 15
|
What does this attribute suppose to do:
In the config it says: <!-- this will ensure that urls are unique when running with multiple root nodes --> <useDomainPrefixes>true</useDomainPrefixes>
But as far as I can see, changing this attribute changes nothing. I've changed it to false and tried to give two nodes same domain name (www.mywebsite.com) but umbraco refuses = get an error telling me that the domain name i tried to use is already used.
Is there something I've missed?
Thanks! // T
|
|
 Rank: Addict
Joined: 2/19/2007 Posts: 741 Location: Belgium
|
true giving different domains wwwtest1.mywebsite.com wwwtest2.mywebsite.com These domains don't need to exist, they are just dummy domains...
Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
|
|
 Rank: Enthusiast
Joined: 11/27/2007 Posts: 15
|
Yes this seems to be working now... I created a mother node which is just a redirect webpage (content picker) called www.mywebsite.com. This page redirekts to the old startpage which is now called "en", on the same level (sibling) I've copied the whole "en" folder and renamed it "de" and given it another fake domain with language set to german - now I just have to translate all pages ;) This results - I got multilingual websites below one domain: www.mywebsite.com/en/services/how-to-make-sence.aspx and www.mywebsite.com/de/zie-german/auf-wieder-zehn.aspxThanks for the help! And good luck for anyone else with the same issue... Regards, T
|
|
|
Guest |