Home Guides Glossary

Change Your Default/Index File (Windows)

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?

Using Windows® hosting accounts running IIS 7, you can specify your website's default file using a web.config file.

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="file name.file extension" />
</files>
</defaultDocument>
</system.webServer>
</configuration>

For example, instead of using the default index.html, you could make your website's default file example.html with the following code:

<configuration>
<system.webServer>
<defaultDocument enabled="true">
<files>
<add value="example.html" />
</files>
</defaultDocument>
</system.webServer>
</configuration>

Domain Registration

Pay less for website domain names. Register your own .com, .net or .org for as low as $10.18 per year. We have everything you need to get online with your new domain.

Website Builder

Build an amazing website in just under an hour with Website Builder. Take advantage of designs created just for your industry and then customize them to reflect your one-of-a-kind idea.

Website Security

Protect your website and keep customers safe. Your comprehensive Website Security solution. Get peace of mind by securing your websites.

cPanel Hosting

Everything needed to give your website the high-performance home it deserves.  Protect transactions and secure your customer's data with a SSL Certificate
Copyright © 2005 - 2024.  All rights reserved.  Privacy Policy