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.