Welcome to WebmasterWorld Guest from 54.225.31.78

Forum Moderators: ocean10000

Message Too Old, No Replies

How to map the default document in iis residing inner folder

Iis, Html, Hosting

     
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...
11:46 am on Mar 26, 2013 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld, Felix Antony!

which version of iis?
11:53 am on Mar 26, 2013 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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.
1:40 pm on Mar 26, 2013 (gmt 0)



thank you for your kindly help.
1:41 pm on Mar 26, 2013 (gmt 0)



thank you phranque
 

Featured Threads

Hot Threads This Week

Hot Threads This Month