"Add the umbracoInternalRedirectId property alias to
your document type (en, de, fi) with a content picker and Umbraco will
load the selected page’s content transparently; no url redirection."
but is not ok for me.
I have a website that has 2 structure for both languages. I want to set english language to be defined as default.
I also tried to move folder in content tab but could not move them.
Hi. AFAIK, umbraco doesn't have any inbuilt tool for redirection based on the user's language. If you want to do it you can for instance develop some macro that inspects the Request.UserLanguages array and redirect the user to the specific start page and than embed this macro to your templates, or it can be implemented in some custom HttpModule and registered in web.config and so on.
How to set default page in multiligual set up???
I have tried to fallow this instruction
"Add the umbracoInternalRedirectId property alias to your document type (en, de, fi) with a content picker and Umbraco will load the selected page’s content transparently; no url redirection."
but is not ok for me.
I have a website that has 2 structure for both languages. I want to set english language to be defined as default.
I also tried to move folder in content tab but could not move them.
Which is the solution?
Regards,
Adrian
Hi Adrian,
May be you could make some changes to your URLRewritting.config file and make a permanent redirection to either the en/de/fi.
Something like www.domain.com/en, www.domain.com/de or www.domain.com/fi
<add name="De" virtualUrl= "^~/$"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="~/de/"
ignoreCase="true"
redirect="Application"
redirectMode="Permanent" />
//fuji
Hi. AFAIK, umbraco doesn't have any inbuilt tool for redirection based on the user's language. If you want to do it you can for instance develop some macro that inspects the Request.UserLanguages array and redirect the user to the specific start page and than embed this macro to your templates, or it can be implemented in some custom HttpModule and registered in web.config and so on.
i do not want a permanently redirect, only when first load website to open the page in english
Hi Adrian,
What do you mean by first Load website to open the page in English??
//fuji
This is my template:
When i load website sitename.com it loads content that is in HoteloProRo. I want to load HoteloPro EN
It seems I understand. What you need is to make all your home nodes the top level nodes. For instance:
Content
en
de
fi
Than the "en" node will be accessible by the url "/" and "de" and "fi" nodes by "/de/" and "/fi/" respectively.
Make sure that you have "hideTopLevelNodes = true" in your web.config file.
Also you will still need to implement some process of setting the current culture based on the incoming URL.
Oh. I'm sorry for possible confusion - of course I meant:
umbracoHideTopLevelNodeFromPath = false
is working on a reply...