Replacing index.php with static html, moving coppermine's index to gallery.php Replacing index.php with static html, moving coppermine's index to gallery.php
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Replacing index.php with static html, moving coppermine's index to gallery.php

Started by copperminepro, December 21, 2007, 09:03:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

copperminepro

Okay, Currently I have the default coppermine structure (I'm using sef_urls):

http://www.mysite.com/index.php - Homepage, category/album lists
http://www.mysite.com/index-1.php - First Category
http://www.mysite.com/index-2.php - Second Category
http://www.emobucket.com/thumbnails-12.html - Random Album
http://www.emobucket.com/thumbnails-20.html - Another random album

What I want to do is replace index.php with index.html, and move index.php to gallery.php, effectively making my structure this:

http://www.mysite.com/index.php - Homepage
http://www.mysite.com/gallery.php -  Category/Album lists
http://www.mysite.com/index-1.php - First Category
http://www.mysite.com/index-2.php - Second Category
http://www.emobucket.com/thumbnails-12.html - Random Album
http://www.emobucket.com/thumbnails-20.html - Another random album


See, I want to keep index-1.php and index-2.php where they currently are.

What I'm thinking is that I need to do this:

Rename index.php to gallery.php
Upload my new index.html
Re-write gallery-1.php to index-1.php using htaccess

But my question is, where in the script would I tell coppermine the location of the index.php file?

Is this even possible? As of now when you come to my site you are greeted with a modified coppermine index.php that is VERY, VERY resource demanding. It's loading my server and with my increasing traffic it seems I'm upgrading my server every 2 weeks, hopefully this could reduce the load.


Nibbler

Keep it as index.php and add in an index.html. Make the index.html the default using DirectoryIndex in .htaccess if it isn't already default.

copperminepro

Ahh...

So make the server look for index.htm / index.html first, than duplicate index.php as gallery.php, but keep the old index.php so the categories still work fine?

Is there anything I could do to make index.php not accessible

so say someone types in mysite.com/index.php, I don't want them to be able to access it  ???