Multilanguage site in virtual host mode with subdirs

Multilanguage site in virtual host mode with subdirs

Friday 27 October 2006 3:30:37 am - 1 reply

Modified on Friday 27 October 2006 7:15:50 am by Andreas Tremel

Author Message

Andreas Tremel

Friday 27 October 2006 7:53:13 am

Hi There,

aftr serveral [trial/error]-loops here the solution that works with our server;

- use Virtual Host Mode
- configure different sites as described in the docs, in our case:
lang1
lang2
- edit /.../settings/override/site.ini.append.php
the important section is:

[SiteAccessSettings]
ForceVirtualHost=true
MatchOrder=host;uri
HostMatchMapItems[]
HostMatchMapItems[]=lang1.mysite.com;lang1
HostMatchMapItems[]=lang2.mysite.com;lang2
HostMatchMapItems[]=admin.mysite.com;admin
URIMatchType=element
URIMatchElement=1 

You can then either access via
www.lang1.mysite.com
www.lang2.mysite.com

or alternatively via:
www.mysite.com/lang1
www.mysite.com/lang2

Regards,
Andreas Tremel

You must be logged in to post messages in this topic!

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