coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: ariev on April 10, 2004, 09:36:56 PM

Title: Renaming index.php to somethingelse.php??
Post by: ariev on April 10, 2004, 09:36:56 PM
If I wanted to rename index.php to something else (ex. fotos.php or gallery.php), I assume that I would need to change all instances of 'index.php?' in the code itself.

Can you give me any advice on this?

Thank you.
Title: Renaming index.php to somethingelse.php??
Post by: Joachim Müller on April 11, 2004, 08:47:54 AM
yes, you'd have to go through the code and find all occurences of links to index.php. Not a good idea imo, since you'd have to re-do this every time you upgrade coppermine.

GauGau
Title: Renaming index.php to somethingelse.php??
Post by: ariev on April 11, 2004, 05:07:51 PM
Doing a mass search/replace isn't a big deal, but I thought of one possible problem. If there are any references to root ('/') instead of 'index.php', then those would have to be changed too. *That* can be a problem and make a s&r more difficult.
Title: Renaming index.php to somethingelse.php??
Post by: Joachim Müller on April 12, 2004, 07:13:15 AM
afaik there are no references to / (as you usually install coppermine into a folder, not into the webroot), but to $CONFIG['ecards_more_pic_target'], which must be a folder, not a file - this means there may be references to coppermine root in the code that is harder to track.

GauGau