Frequently Asked Questions

Change Your Default/Index File (Windows)

Print this Article
Last Updated: June 19, 2015 9:36 AM

Your hosting account's default file displays when visitors go to your site. For more information, see What file displays when someone browses to my domain name?

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 information about your account's IIS7 support, see Which components does my hosting support?

To change your website's default file, include the following code in your web.config file:

<configuration> <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.