Host_uri_scheme

Author Message

Lars Eirik R

Friday 17 December 2010 3:09:02 am

Hi.

I am trying to get the following to work..

I would like to have www.mysite.com/customer1 render a different design than www.mysite.com/customer2

I am on 4.4 and i have tried to use the following:

MatchOrder=host_uri
HostUriMatchMapItems[]=www.web.com;customer1;customer1design
HostUriMatchMapItems[]=www.web.com/customer2;customer2design

The problem is that i am able to render my design if the url is as follows:

www.web.com/customer1

however i get a module not found (kernel 20 error) if i try to access a subpage of customer1, for instance www.web.com/customer1/articles

Is this not possible with the new host_uri scheme?

My client does not want to have separate urls.

any ideas on how this can be achieved?

(perhaps i am thinking too complex and should stick to host scheme instead of host_uri?)

Update1: Not fully done with this, but seems i have to fix the pathprefix to get it to work on my installation.

Yannick Komotir

Friday 17 December 2010 4:35:40 am

hello,

are you try by giving customer1 and customer2 like siteacess name's ?

<|- Software Engineer @ eZ Publish developpers -|>
@ http://twitter.com/yannixk

André R.

Friday 17 December 2010 4:30:23 pm

There seems to at least be an typo in your setting:

HostUriMatchMapItems[]=www.web.com/customer2;customer2design

should have been

HostUriMatchMapItems[]=www.web.com;customer2;customer2design

where customer2design is the name of the siteaccess.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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

eZ debug

Timing: Jan 30 2025 00:13:16
Script start
Timing: Jan 30 2025 00:13:16
Module start 'layout'
Timing: Jan 30 2025 00:13:16
Module start 'content'
Timing: Jan 30 2025 00:13:16
Module end 'content'
Timing: Jan 30 2025 00:13:16
Script end

Main resources:

Total runtime0.0128 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.1250151.2109
Module start 'layout' 0.00510.0020 739.335936.6563
Module start 'content' 0.00710.0044 775.992290.1875
Module end 'content' 0.01150.0013 866.179733.9766
Script end 0.0128  900.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002216.8519140.0002
Check MTime0.00097.3677140.0001
Mysql Total
Database connection0.00075.511810.0007
Mysqli_queries0.002116.449830.0007
Looping result0.00000.061410.0000
Template Total0.00107.810.0010
Template load0.00075.519310.0007
Template processing0.00032.202110.0003
Override
Cache load0.00053.903510.0005
General
dbfile0.00086.150380.0001
String conversion0.00000.039140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs