Help - Search - Members - Calendar
Full Version: IIS: How to configure default file for directories
Invision Power Services > Community Forums > Community Web Design and Coding
Jeremy-
I'm still new to IIS (I've been using Apache since I started web development), I'd just like to know how one would go about setting the default file for directories? I know in Apache you can either set it in the Apache config file, or use .htaccess in each directory.

Idealy what I'd like to do (if possible) is have it set up so index.asp is first, if that doesn't exist, look for index.php, if that doesn't exist, index.html, then index.htm.... etc...
sbauer
You can do this by using the IIS snap-in admin tool located under Administrative Tools.

Expand the site you want to change by clicking the plus sign, then right-click on the directory and go to properties. Select the document tab and add the document name in the listbox. The up and down arrow allow you to prioritize the documents. (i.e. default.asp before index.asp, etc..)
Jeremy-
Awesome! Thanks, Shane!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.