Is it possible to define a virtual directory in IIS and make the files relative to the physical dire
Posted
by Mikey John
on Stack Overflow
See other posts from Stack Overflow
or by Mikey John
Published on 2010-05-13T09:50:55Z
Indexed on
2010/05/13
9:54 UTC
Read the original article
Hit count: 305
iis
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 ?
© Stack Overflow or respective owner