I have been trying and trying to figure out a way to use index.php instead of main.php for my Gallery2 install.
I finally was able to get a hold of the founder of Gallery online at Freenode, and here’s what we tested.
bharat: element: you could try putting
bharat: define(’GALLERY_MAIN_PHP’, ‘index.php’);
bharat: in your config.php
element: ok, one sec
element: bharat++
element: that did the trick!
After the long trek of finding a way to make this work, his solution did the trick!
One last bit though, I did this to make sure everything worked properly, I copied main.php over to index.php, so I had both files main.php and index.php. After doing that, everything worked like a charm!
Please note, this is only tested to work on Gallery2.2.x