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

eZ debug

Timing: Jan 17 2025 22:56:07
Script start
Timing: Jan 17 2025 22:56:07
Module start 'content'
Timing: Jan 17 2025 22:56:08
Module end 'content'
Timing: Jan 17 2025 22:56:08
Script end

Main resources:

Total runtime1.2549 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 589.2578180.8281
Module start 'content' 0.00741.0776 770.0859645.5313
Module end 'content' 1.08500.1699 1,415.6172337.3672
Script end 1.2548  1,752.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3267210.0002
Check MTime0.00150.1227210.0001
Mysql Total
Database connection0.00090.069510.0009
Mysqli_queries1.159392.38272020.0057
Looping result0.00280.22172000.0000
Template Total1.224097.520.6120
Template load0.00220.177120.0011
Template processing1.221897.362020.6109
Template load and register function0.00050.040810.0005
states
state_id_array0.00100.079110.0010
state_identifier_array0.00090.070220.0004
Override
Cache load0.00190.1527360.0001
Sytem overhead
Fetch class attribute can translate value0.00170.137450.0003
Fetch class attribute name0.00190.149370.0003
XML
Image XML parsing0.00830.659550.0017
class_abstraction
Instantiating content class attribute0.00000.000870.0000
General
dbfile0.01401.1123400.0003
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 8

Time used to render debug report: 0.0002 secs