change -> index.php

Author Message

Fady Chakik

Wednesday 09 April 2003 2:17:19 am

Hello,

How could we change the name of "index.php" to another name like "default.php" ?

Just renaming doesn't work!

-Fadi

Claus Jensen

Wednesday 09 April 2003 5:46:42 am

I dont think its really smart to rename the index.php, cant you instead make your webserver rewrite the requests made to default.php, or make index.php one of the default "serving pages" ? I think its refered to several times in the ezpublish php code..

claÜs

Kai Duebbert

Wednesday 09 April 2003 11:33:52 pm

This is actually really easy.

Two steps:
1. Rename "index.php" to "default.php"
2. Edit "default.php" and change line 259 to "eZSys::init( 'default.php' );"

Voila.

Kai

(BTW: it should also be possible to use this for a SiteAccess method. E.g. admin.php for the administration area and user.php for the user area.)

Scot Wilcoxon

Wednesday 16 April 2003 6:27:44 pm

The "index.php" name is buried in the code and things can break if a different name is used. Specifically, to find the base URL for images a string search for "index.php" is done in some configurations. If that is needed and fails, the pages look quite ugly. I've reported several related issues.

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 05:15:09
Script start
Timing: Jan 18 2025 05:15:09
Module start 'layout'
Timing: Jan 18 2025 05:15:09
Module start 'content'
Timing: Jan 18 2025 05:15:10
Module end 'content'
Timing: Jan 18 2025 05:15:10
Script end

Main resources:

Total runtime0.8180 sec
Peak memory usage4,096.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 588.9063152.6094
Module start 'layout' 0.00740.0041 741.515639.4063
Module start 'content' 0.01160.8049 780.9219542.6484
Module end 'content' 0.81650.0015 1,323.570312.1953
Script end 0.8180  1,335.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4196160.0002
Check MTime0.00140.1702160.0001
Mysql Total
Database connection0.00110.134610.0011
Mysqli_queries0.768593.9510640.0120
Looping result0.00060.0765620.0000
Template Total0.780195.420.3901
Template load0.00210.261720.0011
Template processing0.778095.104420.3890
Template load and register function0.00020.020110.0002
states
state_id_array0.00230.281410.0023
state_identifier_array0.00160.195620.0008
Override
Cache load0.00180.2184200.0001
Sytem overhead
Fetch class attribute can translate value0.00140.167440.0003
Fetch class attribute name0.00110.133940.0003
XML
Image XML parsing0.00050.062240.0001
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00070.0814100.0001
String conversion0.00000.001040.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
1content/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: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs