homepage Welcome to WebmasterWorld Guest from 54.204.215.209
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

    
How to map the default document in iis residing inner folder
Iis, Html, Hosting
Felix Antony




msg:4558512
 4:42 am on Mar 26, 2013 (gmt 0)

I have a folder structure in IIS that: Dir1/Dir2/index.html. I want to map default as Dir1/index.html. When I give the default document as Dir2/index.html in "Add Default Document" session, The css file and js files are not working when i browse as Dir1/index.html. But its working for me when I browse asDir1/Dir2/Index.html.

Is it possible for me to map as default from Dir1/Dir2/index.html to Dir1/index.html without lossing css file and js file accessibility? Is an html page. not aspx/ascx file.... Thanks in advance...

 

phranque




msg:4558558
 11:46 am on Mar 26, 2013 (gmt 0)

welcome to WebmasterWorld, Felix Antony!

which version of iis?

g1smd




msg:4558563
 11:53 am on Mar 26, 2013 (gmt 0)

Accessing css and js is done from the web using URLs. URLs are a reference system used on the web, rather than inside the server.

Use the full path to the file, beginning with a leading slash, in the link to that resource.

Use href="/folder/file.css", beginning with a leading slash, rather than href="file.css" or href="folder/file.css". Especially avoid the href="../folder/file.css" format.

Felix Antony




msg:4558589
 1:40 pm on Mar 26, 2013 (gmt 0)

thank you for your kindly help.

Felix Antony




msg:4558590
 1:41 pm on Mar 26, 2013 (gmt 0)

thank you phranque

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved