• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 582
  • Last Modified:

IIs 6 Parent paths - going beyond root

I have a server 2003 box running IIS6.
I have enabled parent paths.

I have the following path on the server with some css styles I want to share between websites:

One website site root is located at:

Another site root is located at:

An example include from one of my forms held at either of the two root looks like this:
<link href="../../css/qualityfirst.css" rel="stylesheet" type="text/css"/>

Testing on my development machine (win 7 IIS7) using localhost works fine - on the server it doesn't error but it is not loading the css from 'above' the site root.
1 Solution
Why don't you create a virtual directory in each of the secondary sites as CSS pointing to d:\inetpub\wwwroot\quality1st\css

I think you may have misinterpreted the meaning of parents paths.

You are trying to cross web site boundaries.  The parent path feature deals with access using ..\ to move up one directory from where you are up one up to the site defined root.

Website1 d:\inetpub\wwwroot\quality1st
Website2 d:\inetpub\wwwroot\quality1st\branch1
Website3 d:\inetpub\wwwroot\quality1st\branch2

Each subfolder within the site get only get up to the root of the site without regard that they are within the filesystem within a similar path.
splantonAuthor Commented:
Great answer. Virtual paths - of course!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now