I have inherited a web site that has all of the paths set using relative paths, that only work when the site is located in the web root.
I have put the site in a virtual directory, and none of the paths work correctly.
<img src="/img/logo/BadCo.gif" width="156" height="55" alt="BadCo" />
I can resolve this as follows:
<img src='<%= ResolveUrl("~/img/logo/BadCo.gif") %>' width="156" height="55" alt="BadCo" />
However, I do not want to have to manually change every single one, of hundreds of paths throughout the project, and coming up with a regex to do the replace would hurt my tiny brain.
Any ideas or suggestions will be much appreciated