After many hours of work, the gallery is working again. Some of the URLs have been regenerated and are different from the originals, so I'll need to do a bit of work on the back-end to get the redirection working properly. If you notice any problems, please let me know.