Take look at this section of your settings/site.ini
# An array of access types which are tried, possible entries are: host, index, uri, port and servervar
MatchOrder=uri;host;port
# Possible values: disabled, element or regexp
# disabled - turns off uri matching
# element - maps a url element to a siteaccess name
# regexp - match against a regexp and extract a portion of it
URIMatchType=element
URIMatchElement=1
URIMatchRegexp=^/([^/]+)/
URIMatchRegexpItem=1
# Use either disabled, map, element, text or regexp
HostMatchType=map
HostMatchElement=0
HostMatchRegexp=^(.+)\.example\.com$
HostMatchRegexpItem=1
HostMatchSubtextPre=
HostMatchSubtextPost=.example.com
# Add array entries here if you chose HostMatchType=map
# Each entry consists of the hostname;accessname
#HostMatchMapItems[]=example.com;user
#HostMatchMapItems[]=admin.example.com;admin
# Use either disabled, element, text or regexp
IndexMatchType=regexp
IndexMatchElement=1
IndexMatchRegexp=^/index_(.+)\.php$
IndexMatchRegexpItem=1
IndexMatchSubtextPre=index_
IndexMatchSubtextPost=.php
We haven't use mixed siteaccess type ever, but it seems like you can play with settings above to do it
Thanks for your reply!
I tried these settings before, but now, I'm able to access
www.mysite.com/en and /de,
www.mysite.com,
but if I want the admin interface on
admin.mysite.com, it leads me on www.mysite.com
and I don't know why..I can access the admin on www.mysite.com/admin.
My site.ini is similar like the original, I have tried many combinations.
The only solution I see is to have en.mysite.com, etc..
nobody knows how to make it?
Now, I use hostname siteaccess for mutliple languages like this:
en.mysite.com
de.mysite.com
admin.mysite.com
But I realized, that I need to use this:
www.mysite.com/de
www.mysite.com/en
admin.mysite.com
so that I can also translate url to this languages, for example:
www.mysite.com/neue_produkte www.mysite.com/new_product
Thank you in advance if you know the answer, Zdenek
Looking at the code in access.php, it seems that 'uri' match always return siteaccess even if an host match or whatever is wished in MatchOrder directive... not cool !
Because it would be great to have uri match before host match.
It seems to work on ez.no and I wonder what is the site.ini config for ez.no site. Somebody in eZ System can help us ?
You must be logged in to post messages in this topic!