I have images in my web app that are currently retrieved from another domain:
<img src="https://images.other.net/{folder}/{filename}"/>
I want to rewrite all image urls to a specific action in my own domain but using some parts of the path above. The new URL should look like:
<img src="https://images.mydomain.net/en/home/getimage?name={filename}&folder={folder}"/>
where folder and filename are dynamic values.
I want to see if I can do it without actually changing all paths 1 by 1.
Can I do it either by MVC Routing rules or by URL rewrite rules in the web.config file?