I have a site that stored all their images at the root level. I’d like to move the images to a sub directory such as /media/images and then with mod_rewrite, direct all requests for those images stored at the root level to the ones that have been moved to the directory /media/images?
Share
RewriteRule ^([^/]+)(\.png|\.jpg|\.bmp|\.gif)$ media/images/$1$2Should work nicely.