Default file in IIS

I have a site hosted in IIS.
I want to make ‘default.asp’ as the index file in a folder. That is when I point the browser to , it should return
Kindly tell me how to do it.
In Apache, I get it done by a .htaccess file. But totally new to IIS which is in our intranet.
Please help.

You will have to contact the administrator to make the change for you. You obviously can not use .htaccess files on a Windows server.

As a temproary solution, you can create a html file with a meta refresh tag that will link to the default.asp page. Something like:

<title>Untitled Document</title>
<meta http-equiv="refresh" content="0;URL=default.asp">

<body bgcolor="#FFFFFF" text="#000000">


I will try and look into the possibility of using the Global.asa file to accomplish that and get back to you. The Global.asa file is somewhat the Microsoft version of the much more powerful .htaccess! :slight_smile:

Or if you have control over IIS you can set-up additional default pages:

  1. Open IIS
  2. Click the + sign next to the computer’s name
  3. Right click on the site you want to modify and click “Properties”
  4. Then click on the “Documents” tab on the upper right of the properties box.
  5. You will see a box “Enable Default Document”
  6. Click ADD and type the file name (e.g. index.htm).
  7. Click OK to close. You can adjust the order that IIS will server first. For example, if you have a default.htm and default.asp in the directory and you do not specify which one you want it will show the first one at the top of the list.
  8. Click OK to close the properties sheet.