Share » Forums » General » change -> index.php

change -> index.php

change -> index.php

Wednesday 09 April 2003 2:17:19 am - 3 replies

Author Message

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.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu