Msg#: 4611985 posted 11:02 am on Sep 23, 2013 (gmt 0)
How would I create a RewriteCondition which matches only images files and if they're not found, tries a subfolder, a sub-subfolder, and then if still not found returns a 404?
For example: If example.com/images/image1.jpg does not exist try example.com/images/folder/image1.jpg and: If example.com/image1.jpg does not exist try example.com/images/image1.jpg and then example.com/images/folder/image1.jpg
I've come up with the following, but any variation I try either gives a server error or looks in /folder/folder/..(repeats)../folder/images/image1.jpg
Msg#: 4611985 posted 8:54 am on Sep 24, 2013 (gmt 0)
Its basically to support an image heavy legacy site that was hosted on the same domain. The previous webmaster saw fit to save *everything* at root level, with the exception of approx 250 images (in 'images' folder), so we're talking 500(ish) images in total.
So, my aim is to move all the image files into /images/legacy/ to keep the directory structure a bit more tidy whilst still being able to serve them from the original reference.