Changing Your Windows Hosting Account's Default File
Using Windows® hosting accounts running IIS 7, you can specify your website's default file using a web.config
file. For example, instead of using the default index.html
, you could make your website's default file example.html
. For more information on your hosting account's default file, see What file displays when someone browses to my domain name?.
To change your website's default file, include the following code in your web.config
file:
<system.webServer>
<defaultDocument enabled="true">
<files>
<add value="example.html" />
</files>
</defaultDocument>
</system.webServer>
</configuration>
where example.html
is the name of the file you want to use.