I have a webapp that on my local machine runs as the root url, however on the server it runs in new virtual directory of another website.
The problem i have is that all the images have been written like so;
<img src="/Images/image.jpg" .../>
However when i upload the webapp to the server the image needs to be like this
<img src="/myApp/Images/image.jpg .../>
so i thought i would use the rewrite module to change the image path and save myself some time. Using IIS7 I have the following for the pattern;
*/Images/*
and this for the actions rewrite property
http://myDomain.com/myApp/Images/{R:2}
however i doesn't work - this image is still showing as not found - can someone point out my mistake.
Thanks in advance