Not fully sure if this is possible or not, but Ive been tasked with rebuilding a handful of sites that, their internal workings is a mystery as to how they are still functional. Raised before MVC, CMS, etc were even really known about. In the days of PHP 4 on the cusp of 3, if that gives you any idea. So.. I have a mess, a big on, that I am trying to rebuild using a MVC, which thats not really the problem.
The problem is, is the 20,000 or so files and images that have been stored in articles, and various other things on this site over the ages. So there is sites every where that have hotlinked images and other files, not to mention the hardcoded urls in the articles, which will eventually be converted correctly but theres so many.
Anyway. Bottom line is I wanna know if theres a means of mean taking failed image and file requests and mapping them to a new folder that will have either all these images or files in them. Is this something htaccess can do alone or is this something I will have to come up with a means of serverside script and htaccess? or is it the worst case where I am going to have to take the hit for files not found, and route them all to a single error page, saying the files have been moved?
Not sure what would be a good course of action for this problem so I havent tried anything yet, kinda trying to feel it out and see where I have to go from there.
You can use redirection for all image extensions to specific folder:
Hope this helps…