gallery.php to index.php