Forums / Setup & design / Problem with Mixed MatchOrder host & uri

Problem with Mixed MatchOrder host & uri

Author Message

Radek Kuchta

Friday 18 August 2006 1:11:40 am

Hi,

I've read a lot of posts about that problem but I cudn't find the solution.

I have 3 domains:

domain1.com
domain2.com
domain3.com

Each of them has 3 translations en/de/pl

domain1.com/en
domain1.com/de
domain1.com/pl
...

I have a problem with mix MatchOrder.

My override/site.ini.append.php

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]
AvailableSiteAccessList[]=domain1_en
AvailableSiteAccessList[]=domain1_pl
AvailableSiteAccessList[]=domain1_de
AvailableSiteAccessList[]=domain2_pl
AvailableSiteAccessList[]=domain2_en
AvailableSiteAccessList[]=domain2_de
AvailableSiteAccessList[]=domain3_pl
AvailableSiteAccessList[]=domain3_en
AvailableSiteAccessList[]=domain3_de
AvailableSiteAccessList[]=milenium_pl
AvailableSiteAccessList[]=milenium_en
AvailableSiteAccessList[]=milenium_de

MatchOrder=host;uri
HostMatchType=map
HostMatchMapItems[]=domain1.com;domain1_en
HostMatchMapItems[]=domain2.com;domain2_en
HostMatchMapItems[]=domain3.com;domain3_en

URIMatchType=element
URIMatchElement=1

But this doesn't work, because when a host match is found, the uri is not evaluated.
The other way (uri;host) also doesn't work - when a uri match is found, the host is not evaluated.

Anyone solve that problem ?
I have no idea how to do it.

http://ez.no/certification/verify/272582

Xavier Serna

Thursday 03 May 2007 12:50:17 am

Anybody out there with a solution for this? Here we have the same problem and can't figure out how to solve it.. for now we are using host based siteaccess choice, but would be better to use:

domain1.com/lan1
domain2.com/lan1
domain1.com/lan2
domain2.com/lan2

thank you for reading! :)

--
Xavier Serna
eZ Publish Certified Developer
Departament de Software
Microblau S.L. - http://www.microblau.net
+34 937 466 205

Akhilesh Singh

Saturday 28 May 2011 3:51:13 am

any one with this solution ..

i am getting same issue.. i am using ez4.3 there should be some solution for this i am sure i am missing something but what i have no clue. can any one help me in this.??

THank you,
Akhi 

Steven E. Bailey

Saturday 28 May 2011 7:52:12 am

This was solved with ez4.4: https://github.com/ezsystems/ezpublish/blob/master/doc/features/4.4/host_uri_siteaccess_matching.txt so if you can upgrade that would be the best way of fixing this.  Otherwise, there is a patch here : http://issues.ez.no/IssueView.php?Id=15359.  Also, search for host_uri to get a bunch of other forum discussions.

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com