Forums / Install & configuration / ez.no-like multilingual siteaccess configuration

ez.no-like multilingual siteaccess configuration

Author Message

Patrick Allaert

Wednesday 17 December 2008 7:34:07 am

Hello,

I'd like to configure a multilingual site the same way than the ez.no website.
I mean:
http://ez.no/ => siteaccess in default language (en)
http://ez.no/fr => siteaccess in french
http://ez.no/de => siteaccess in german

In my case, I only have 2 languages for a first step:
http://example.com/ siteaccess in default language (fr)
http://example.com/nl siteaccess in dutch

But I'd like to be able to handle more languages in the future.

The problem I have is that I don't see how to configure my Apache and siteaccesses to handle this scheme.

I tried using MatchOrder=uri having a siteaccess with an empty name, but it didn't succeed.

Any idea?

Thanks a lot for the help :-)

Patrick ALLAERT
http://patrickallaert.blogspot.com/

Stéphane Bullier

Wednesday 17 December 2008 11:46:29 am

Hello,

I use this setting in file settings/override/site.ini.append.php and I have www.mydomain.com for french and www.mydomain.com/en for english :

[SiteSettings]
DefaultAccess=fr
SiteList[]=fr
SiteList[]=en

[SiteAccessSettings]
CheckValidity=false
ForceVirtualHost=true
AvailableSiteAccessList[]=fr
AvailableSiteAccessList[]=en
AvailableSiteAccessList[]=site_admin
MatchOrder=uri
RelatedSiteAccessList[]=fr
RelatedSiteAccessList[]=en
RelatedSiteAccessList[]=site_admin
RemoveSiteAccessIfDefaultAccess=enabled

You cans also read this article :
http://ez.no/developer/articles/how_to_configure_an_ez_publish_site

Cheers

Stéphane