Solved

How to configure file paths for IIS 6 virtual directory

Posted on 2009-07-16
2
396 Views
Last Modified: 2012-05-07
Hello,

I have just taken over a portfolio of sites that all have every path specified with leading / at the start of it. So /images/image.jpg and /linkToPage.htm and /css/css.css etc etc etc

I want to create a staging environment for these sites all running from http://staging.companyname.com/virtualDirectory - however when I do this all the image paths, links etc are broken because the the leading slash /. This because it's looking in the root of the domain folder rather than the root of the virtual directory folder.

Having worked with IIS 6 for many years this isn't my understanding of what should happen here. If the virtual directory is configured as an application then it should look in the root of the virtual directory (not the domain).

I did think that the "Enable Parent Paths" may be something to do with it, but seemingly not.

Can anyone help me on this, I am sure it's a simple setting I'm not familiar with.

Cheers,
Dave
0
Comment
Question by:davidhgreen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 22

Accepted Solution

by:
cj_1969 earned 125 total points
ID: 24878275
Try this page ... http://msdn.microsoft.com/en-us/library/ha2y9493.aspx
It steps you through defining a root directory on a VD.
0
 
LVL 37

Expert Comment

by:meverest
ID: 24889166
Hi,

since image paths are interpreted by the browser (i.e. client) then there is nothing you can do on the server side to change that behaviour other that rewriting all the links.

'allow parent paths' is only useful to allow (or prevent) access by a specific application beyond it's application root location.

Cheers.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here are the symptoms: You start receiving calls from users that one of your legacy web apps isn't coming up, so you log into your IIS 5 server to check it out.  When you pull up the services, you notice that the WWW Publishing service isn't runn…
First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) (http://technet.microsoft.com/en-us/library/cc758834(WS.10).aspx) is a much better solution when you need to p…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question