My company is in the process of deprecating our Web Forms projects and using just MVC 3. The default folder for images in MVC 3 is ~/Content/images/.. The problem is that our WebForms was pointing to ~/images/..
We have clients who have direct links to https://www.myurl.com/images/imagename.png and we want it to automatically return the image at https://www.myurl.com/content/images/imagename.png instead.
What is the best route to handle this?
You could create an ImageController controller, something like this:
Then you’d set up your routing so that the URL
/images/goes toImageController::Index.