renaming index.php / making a site go public?

Author Message

Jan Fuelscher

Wednesday 16 August 2006 1:29:48 am

Hi all

This is probably a new user question: Is it possible to rename index.php to something else, e.g. indextest.php?

Background: I want to install ez Publish at its final destination, configure the site using indextest.php and then make it public by renaming indextest.php to index.php. Any idea whether that's still not possible (I found a forum entry of 2003 saying it's not advisable to rename index.php)?

If that's not possible: What's the preferred method of going life with a site?

Thanks
Jan

Clemens T

Wednesday 16 August 2006 1:36:18 am

I'd say, use: .htpasswd for protecting your directory and remove it when you 'go live'.

If you want to rename your index.php file, I think you have to change the redirections in .htaccess as well (off the head).

Greets,
Clemens

Jan Fuelscher

Wednesday 16 August 2006 2:56:27 am

Thanks for the quick reply.

Maybe I need to explain a bit more. I currently have a number of sites using PHP/MySQL and, of course, using index.php as main entry. I'd like to move them to Ez over time.

However, I don't see yet a way how to achieve this without a complicated directory move, so I had the idea of just using a different index.php, e.g. index-ez.php. I then could implement the site with eZ, have my users starting to fill it with content, etc.

Once we're finished, I just remove the old index.php and rename index-ez.php to index.php. I'd have very little downtime and almost no risk of something going wrong.

Is this possible? Or is there a better way?

Jan Fuelscher

Wednesday 16 August 2006 2:58:22 am

... or I could rename my current index.php to index-old.php, adjust .htaccess and then go life with a quick fix to .htaccess...

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 19 2025 06:29:56
Script start
Timing: Jan 19 2025 06:29:56
Module start 'layout'
Timing: Jan 19 2025 06:29:56
Module start 'content'
Timing: Jan 19 2025 06:29:57
Module end 'content'
Timing: Jan 19 2025 06:29:57
Script end

Main resources:

Total runtime1.0528 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0095 590.4219152.6406
Module start 'layout' 0.00950.0045 743.062539.4766
Module start 'content' 0.01401.0372 782.5391478.3125
Module end 'content' 1.05120.0015 1,260.851612.1250
Script end 1.0527  1,272.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3355160.0002
Check MTime0.00140.1302160.0001
Mysql Total
Database connection0.00120.110410.0012
Mysqli_queries1.001095.0858600.0167
Looping result0.00060.0587580.0000
Template Total1.012196.120.5061
Template load0.00220.206520.0011
Template processing1.009995.931420.5050
Template load and register function0.00020.021910.0002
states
state_id_array0.00120.118310.0012
state_identifier_array0.00070.069520.0004
Override
Cache load0.00180.1669220.0001
Sytem overhead
Fetch class attribute can translate value0.00100.090420.0005
Fetch class attribute name0.00110.106140.0003
XML
Image XML parsing0.00030.026120.0001
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00110.1065100.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
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs