mod_rewrite to find missing /img/foo.jpg in /img/f/
- by Ambrose
I've got a folder of images which is reaching a critical mass after a few years.
I want to move images into alphabetical folders, so that /img/foo.jpg goes into /img/f/foo.jpg and /img/bar.jpg goes into /img/b/bar.jpg and so on.
In order to make the transition smooth, and to allow the manual uploaders to put stuff into the top level, I'd like to…