Relative paths in IIS 7 Web applications under a website

Viewed 10335

Is there a way to force "Paths" in a web-application under a website to resolve to actual paths under the app, rather than the site?

I'm new so I can't upload an image of what I'm talking about, but see if you can visualize my IIS setup:

IIS 7.0
----MAIN WEB SITE:
    ----Web App #1
    ----Web App #2

Each web app has its own CSS, pointing to its own images; for example in Web App #1:

background-image: url(images/someimage.png)

The problem is, since web app is installed under a main site, "images/someimage.png" resolves to the image folder of the main site, not web app #1.

How can I fix this?

2 Answers
Related