tags:

views:

15

answers:

0

Is it possible to define a virtual directory in IIS and somehow make the files in that directory relative to the physical directory and not to the virtual directory ?

For instance on my server I have the following folders: D:\WebSite\Css\myTheme.css, D:\WebSite\Images\image1.jpg

I created a virtual directory on IIS resources.mysite: Inside my website I reference the sheet like this resources.mysite/myTheme.css

But inside myTheme.css I reference pictures from ../Images/images1.jpg.

So the problem is that image1.jpg is not found because it is relative to the physical folder and not the virtual folder on IIS.

Can I solve this problem without modifying the style sheet ?