July 07, 2004

Broken Gallery?

I noticed this morning that the Gallery on the home Apache server wasn't working properly - and probably hasn't been for a while (why has nobody emailed me?) Anyway, I had moved the (working) gallery onto a subdomain to keep it looking nice and enabled mod_rewrite to use simple links rather than long PHP requests...

The main albums page was working, but all albums were 404'ing - after lots of forum searches I'd tried moving the albums folder, changing the virtual hosts, everything - it would only work either using no subdomain (which mod_rewrite would work with) or using the subdomain without mod_rewrite (hence long URL's)... I was getting rather confused and puzzled until I bumped into a single random post:
The trick is to run your Gallery Configuration Wizard from the sub-domain.

i.e. run http://sub.domain.com/setup/ rather than http://www.domain.com/gallery/setup/. This should fix the RewriteRules correctly (so it will now only run via the subdomain).
5 mins later it was working exactly as it should! I cannot believe after all the forum posts of people failing to get it to work that it was this simple! One post in the middle of thousands! Grrr... In the process I did manage to add mirror support and FTP'd the wedding photos to a remote server to get them working super fast too ;-)
Posted by Antony on July 7, 2004 03:49 PM | TrackBack
Comments
Post a comment









Remember personal info?




Copy this security code into the box next to it to post a comment.
Security Code