Changing Your Windows Hosting Account's Default File
Your hosting account's default file displays when visitors go to your Website. For more information, see What file displays when someone browses to my domain name?
With our Windows hosting accounts, you can change your account's default file. How you do so depends on which type of hosting account you have (more info).
Web & Classic Windows w/ IIS7
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:
where example.html
is the name of the file you want to use.
Plesk
Plesk has a built-in feature to let you reorder the preference for default files, as well as add new default file names.
To Change Default Document Filenames in Plesk Shared Hosting
- Log in to your Account Manager.
- Click Web Hosting.
- Next to the Plesk account you want to use, click Manage.
- At the bottom of the section of the domain hosting you want to use, click Show More.
- Click Virtual Directories.
- Click Directory Properties.
- In the Default documents search order field, change the order of the file names that display or enter the new filename you want to use.
- Click OK.