SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast S.K's Avatar
    Join Date
    Mar 2001
    Location
    Chennai,India
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question 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 www.mysite.com/folder/ , it should return www.mysite.com/folder/default.asp.
    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.
    Thanks.
    S.K
    CyberBrahma
    ~~~~~~~~~~~
    Ignorance is Bliss!

  2. #2
    SitePoint Guru Husain's Avatar
    Join Date
    Sep 2001
    Posts
    620
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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:
    Code:
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="refresh" content="0;URL=default.asp">
    </head>
    
    <body bgcolor="#FFFFFF" text="#000000">
    
    </body>
    </html>
    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!

  3. #3
    SitePoint Member
    Join Date
    Aug 2001
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.
    Mike - Sales @ RackMy.com
    http://www.rackmy.com 1-866-5-RACKMY
    Colocation & Dedicated Windows 2000 Hosting
    100% Network Uptime SLA, Guaranteed!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •