Solved

How to configure file paths for IIS 6 virtual directory

Posted on 2009-07-16
2
391 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
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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSL certificates for Windows 2012 RDS environment. 5 86
IIS 8.5 3 33
Configure WPAD via DNS 3 68
website went down 6 42
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now