This might be a beginner IIS question, but my application is having trouble loading a css file.
I made a test page named iisstart2.htm with three links to see where it would go to get references
<!-- language: lang-html --><link type='text/css' rel='stylesheet' href='~/site1.css' />
<link type='text/css' rel='stylesheet' href='/site2.css' />
<link type='text/css' rel='stylesheet' href='site3.css' />
I made two copies and put them here:
C:\inetpub\wwwroot
C:\inetpub\wwwroot\ParentLevel
In the Edit Site settings, I have the physical path set to C:\inetpub\wwwroot\ParentLevel
When I browse to the first one (http://localhost/iisstart2.htm
), here’s where it looks for css files:
When I browse to the nested one (http://localhost/ParentLevel/iisstart2.htm
), it looks here
When a link starts with /
, then it's going all the way back to the root, but what I would have imagined it should have done is look for site2.css at http://localhost/ParentLevel/site2.css
Question
Where can I go to change the default root directory?