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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 21:28:50
Script start
Timing: Jan 30 2025 21:28:50
Module start 'layout'
Timing: Jan 30 2025 21:28:50
Module start 'content'
Timing: Jan 30 2025 21:28:50
Module end 'content'
Timing: Jan 30 2025 21:28:50
Script end

Main resources:

Total runtime0.0238 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.3828151.2422
Module start 'layout' 0.00480.0041 739.6250220.7500
Module start 'content' 0.00890.0131 960.3750997.9922
Module end 'content' 0.02200.0017 1,958.367229.9922
Script end 0.0237  1,988.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002611.1013140.0002
Check MTime0.00114.4787140.0001
Mysql Total
Database connection0.00083.246110.0008
Mysqli_queries0.002711.321130.0009
Looping result0.00000.037110.0000
Template Total0.00125.210.0012
Template load0.00093.977810.0009
Template processing0.00031.207510.0003
Override
Cache load0.00062.698010.0006
General
dbfile0.00021.018880.0000
String conversion0.00000.021140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs