Default language

Default language

Tuesday 06 June 2006 9:33:34 am - 2 replies

Author Message

Kristof Coomans

Tuesday 06 June 2006 10:01:36 am

Hi Carlos

I would make an index page outside of eZ publish, that reads the needed HTTP request header ( Accept-Language I guess ) and let that page redirect to the right site access.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Marc Boon

Wednesday 07 June 2006 2:25:00 pm

You could also use siteaccess based on a server variable directly.
In site.ini.append.php:

[SiteAccessSettings]
AvailableSiteAccessList[]=admin
AvailableSiteAccessList[]=en
AvailableSiteAccessList[]=es
AvailableSiteAccessList[]=fr
MatchOrder=servervar;host
HostMatchType=map
HostMatchMapItems[]=admin.example.com;admin
ServerVariableName=HTTP_ACCEPT_LANGUAGE

In this example you use host access for your admin site, using a subdomain.

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.