Forums / Install & configuration / ezurl, ezroot and index.php behaves differently after moving to new server

ezurl, ezroot and index.php behaves differently after moving to new server

Author Message

Mark Marsiglio

Tuesday 02 November 2004 4:55:56 am

When I develop eZ sites on my local webserver, my sites never show index.php, and all of my code uses ezurl instead of ezroot. I assume this is because of my apache config. However, when I switch to my hosting provider's server, the same site then shows the /index.php in the url unless i replace all of the occurrances of ezurl in the code with ezroot. The problem is, I cannot do this for all instances with creating lots of new overrides because the templates in the base and standard design folders use ezurl.

Is there another way to get this to work without making this change? The admin side also does not work when I replace ezurl with ezroot (the design changes to my public side design), so I seem to be stuck with the index.php there.

Any ideas why this would be different on the two servers, which otherwise are installed and configured the same way (eZ pub configuration, not necessarily apache or php config).

Thanks
Mark

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Brendan Pike

Tuesday 02 November 2004 5:20:18 am

This happens when .htaccess is used as the rewrite rule vehicle. I'm not aware of any workaround other than replacing ezurl/ezroot. But there shouldn't be too many instances on your user site, admin is a different story and I have not bothered removing the index.php from the path for admin access.

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Mark Marsiglio

Tuesday 02 November 2004 6:11:55 am

So the difference would be that I am using an .htaccess file for rewrite at the hosting provider, but a modified httpd.conf on my local server? That would make sense, but I am sure that I would have never been able to figure that out...thanks for the help.

Mark

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

eZ debug

Timing: Jan 19 2025 00:28:43
Script start
Timing: Jan 19 2025 00:28:43
Module start 'content'
Timing: Jan 19 2025 00:28:44
Module end 'content'
Timing: Jan 19 2025 00:28:44
Script end

Main resources:

Total runtime0.9382 sec
Peak memory usage4,096.0000 KB
Database Queries58

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 588.1328180.7734
Module start 'content' 0.00700.9281 768.9063538.5156
Module end 'content' 0.93510.0030 1,307.421942.0078
Script end 0.9381  1,349.4297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3384140.0002
Check MTime0.00150.1579140.0001
Mysql Total
Database connection0.00090.095510.0009
Mysqli_queries0.899295.8463580.0155
Looping result0.00050.0507560.0000
Template Total0.910097.020.4550
Template load0.00210.224620.0011
Template processing0.907996.774720.4540
Template load and register function0.00010.011610.0001
states
state_id_array0.00090.092810.0009
state_identifier_array0.00060.061420.0003
Override
Cache load0.00180.1888150.0001
Sytem overhead
Fetch class attribute can translate value0.00050.054920.0003
Fetch class attribute name0.00110.115240.0003
XML
Image XML parsing0.00060.063720.0003
class_abstraction
Instantiating content class attribute0.00000.001350.0000
General
dbfile0.00080.0880170.0000
String conversion0.00000.000730.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs