I have one site with two languages - DA and EN, where DA is the default culture. I want all pages to open with the DA culture, unless the path contains /en/, i.e.:
http://mysite.dk -> DAhttp://mysite.dk/en -> EN
In the admin section I can only add hostnames and connect them to a specific culture, though. I can see that in previous versions of EPiServer it could have been achived by siteHosts in web.config (if I am not mistaken). Can I achieve the same in EPiServer CMS 9? :-)
If I understand your question correctly you want to map your hostnames to cultures in config? If that's the case then its only possible in admin mode and not in config any more.
Let me know if this answers your question!
Ps it may be worth taking a peek at the official help around this: http://webhelp.episerver.com/16-1/EN/cms-admin/managing-websites.htm
I think that if you want to access Danish domain without language indicator http://mysite.dk (instead of http://mysite.dk/da/) and same time access English domain with language indicator (http://mysite.dk/en), then you need to:
1) Add Danish language in Admin mode
2) Set domain together with Danish culture in manage admin/webites.
Thank you for the quick replies.
@Grzegorz: Yes, this is what I want to achieve.
Unfortunately, I cannot do the same "trick" for Edit URLs. Basically, mysite.dk is the front URL (for Internet access), while we have something like my-internal-site.domain.dk for internal access where CMS pages can be editted. However, edit sites cannot be bound to a specific culture. I can remove the Type (i.e., leave it empty) and then it works. Is this the way to do it? :-)
Usually we had separated domains for each language (used by front end servers). So it's different than your scenarion.
But we also used special domain used by backend server for edit mode. The special domain was similar to yours my-internal-site.domain.dk. This domain was also added to websites without language specified.
Did you tried to add this domain? And what is not working in this scenario? (check if you are able to switch language in edit mode)
Thanks Grzegorz. This works well. What I tried and didn't work was to set the type to be Edit for internal-site.domain.dk together with a specific culture (DA in our case). If I don't specify the Type to be Edit (i.e., leave it empty), it works perfectly :-) Just wondered if this is the correct wat to go on.
You can also choose default language on an editor level under my settings. If you don't want to play around with hosts :)
It is more about the URLs, so that I can use en alternative (i.e., edit-mode) URL, which is only available internally and where editors can use the entire site.