URI access method and URL without index.php?

Author Message

Jozef Baum

Monday 22 June 2009 3:17:37 pm

I am new to eZ Publish.

I installed it with the Plain Site and with the URI acces method, which is recommended. The URL I used was, let us say, sub.domain.tld.

Then, I created a new siteaccess "sub" and configured it in the override/site.ini.append.php as the default site. All goes well: the URL http://sub.domain.tld/ no longer leads to the plain_ site_user, but to the "sub" site.

Then, I created a new siteaccess "www" with the URL "www.domain.tld". And now comes the problem: although "www" has another URL then "sub", with the URL http://www.domain.tld, eZ Publish still shows the site "sub".

So eZ Publish seems to take into account only the domain and top level domain in the URL, but not the subdomain.

The only way to solve the problem I have found until now is to switch to the host access method, as then, there is no default site.

André R.

Tuesday 23 June 2009 2:55:31 am

You should change to host based, then if there is no match, the default one is used.

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

Heath

Tuesday 23 June 2009 3:32:13 am

Remember to redirect the old url style of site links!
<i>http://ezpedia.org/ez/switching_to_rewrite_rules</i>

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Jozef Baum

Tuesday 23 June 2009 2:36:09 pm

"You should change to host based, then if there is no match, the default one is used." André R.

Yes, that's what I did.

But then, in the technical manual, eZ Systems should write that the URI access method is the most easy (as it requires no DNS and firewall configuration), but not that the URI access method is the recommended one (as it can lead to the problem I experienced).

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 18 2025 22:39:28
Script start
Timing: Jan 18 2025 22:39:28
Module start 'layout'
Timing: Jan 18 2025 22:39:28
Module start 'content'
Timing: Jan 18 2025 22:39:29
Module end 'content'
Timing: Jan 18 2025 22:39:29
Script end

Main resources:

Total runtime0.6893 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 589.4609152.6406
Module start 'layout' 0.00460.0027 742.101639.4766
Module start 'content' 0.00740.6804 781.5781590.6406
Module end 'content' 0.68780.0015 1,372.218812.1250
Script end 0.6893  1,384.3438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4502160.0002
Check MTime0.00120.1780160.0001
Mysql Total
Database connection0.00060.082410.0006
Mysqli_queries0.637492.4659620.0103
Looping result0.00060.0888600.0000
Template Total0.662496.120.3312
Template load0.00200.294220.0010
Template processing0.660395.794620.3302
Template load and register function0.00020.029010.0002
states
state_id_array0.00090.127810.0009
state_identifier_array0.00080.111520.0004
Override
Cache load0.00170.2418220.0001
Sytem overhead
Fetch class attribute can translate value0.00050.068230.0002
Fetch class attribute name0.00100.151660.0002
XML
Image XML parsing0.00150.217930.0005
class_abstraction
Instantiating content class attribute0.00000.001860.0000
General
dbfile0.00130.1843240.0001
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs