Where can I set the page loading order default.aspx verus index.php

Discussion in 'Windows / IIS' started by DiscountRuss, Jun 4, 2014.

  1. default.aspx loads first before index.php. How can I switch them around, so index.php loads first if someone goes to foldername/ (with no page name)?

    thanks,
    Russ
     
  2. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

    You can change the order through the Control Panel. Go to Tools & Utilities -> IIS Tools, and then click on the Default Documents tab. The load order is from top (first) to bottom (last).
     
  3. Hi Ray, I don't see the Default Documents Tab. Are there different versions of the Control Panel? Attached is a screenshot of what I see. Thanks.
     

    Attached Files:

  4. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

    Hi Russ,

    Yes. Sorry, I didn't realize you were on IIS8. Please follow the instructions here.
     
  5. For the record, this is how to create a new document list in web.config. (the instructions on the forum link did not include how to list multiple pages and did not explain what the clear tag does.)

    <defaultDocument>
    <files>
    <clear/> <!-- removes the existing default document list -->
    <add value="index.php"/> <!-- 1st default document -->
    <add value="default.aspx"/> <!-- 2nd default document -->
    <add value="index.htm"/> <!-- 3rd default document -->
    </files>
    </defaultDocument>

    More information can be found at http://www.dantor.com/support/misc/web-config-default-website-document.aspx

    thanks for your help,
    Russ
     
    Last edited: Jun 5, 2014
    RayH and mjp like this.

Share This Page