mixed host and url siteaccess, is it possible?

Author Message

Zdenek Ziegler

Monday 11 April 2005 8:06:52 am

Hello,
I searched through the whole forum, but I haven't found an answer for this.
I need to set up ezpublish like this:
www.mysite.com
admin.mysite.com

and want to have translated content on
www.mysite.com/de
www.mysite.com/en

I followed the howto for setting up multilingual pages, but now, only url method works.
So I have:
www.mysite.com/index.php/en, etc.
Does anybody know the answer for my problem?
Thanks a lot,
Zdenek

Lazaro Ferreira

Monday 11 April 2005 3:27:42 pm

Hi,

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

Lazaro
http://www.mzbusiness.com

Zdenek Ziegler

Monday 11 April 2005 4:43:15 pm

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..

Zdenek Ziegler

Friday 15 April 2005 1:55:45 pm

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

Vincent Lepot

Monday 20 June 2005 9:56:03 am

I have the same problem.

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 ?

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