Our old ASP.net site stored static images in a sub directory on the root called /images.
Our new ASP.net MVC site stores these images in the new layout of /Content/Images
I’ve changed all the pages in the site to cope with the new folder structure, but I’d like to set up Permanent Redirects from the old static images to the new location.
Our site is hosted, and I don’t have control over IIS, so what is the best approach to solve this?
I use the following code for my MVC 2 websites:
Then I simply add legacy routes to my route map: