CyberSite.net Knowledge Base
How do I change the default document on my Windows/IIS site?


You can change the default index file for your site defaulted to Windows/IIS by using a web.config file with the following code*:

<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="index.html" />
</files>
</defaultDocument>
</system.webServer>
</configuration>

If you have Index.aspx in your content folder as well as Default.aspx, Index.aspx will load first unless you specify the default document which we currently have a kb for. The order in which document will load first is indicated below:

iisstart.htm
index.aspx
index.asp
index.html
index.htm
default.aspx
default.asp
default.html
default.htm

BACK TO KNOWLEDGE BASE TABLE OF CONTENTS

*CyberSite.net takes no responsibility whatsoever for any files, code, content, database back-ups that are not made and/or are not made/done correctly. The information included on this knowledgebase page is usual and customary DB back-up procedures, but may not be complete. It is the client's responsibility to ensure that their site material is correctly backed-up. If a client prefers to make other arrangements or methods for backing up site material, it is at their sole discretion. CyberSite.net always recommends that client back-up their entire site on a regular schedule.

HOME | MARKETING | CREATIVE | DEVELOPMENT | MANAGEMENT | PORTFOLIO | PRODUCTS | HOSTING | CLIENT SERVICES | ABOUT CSN | SUPPORT | KNOWLEDGE | LEGAL & PRIVACY | SITE MAP

Copyright 2011 CyberSite.net, a subsidiary of Group One Communications, Inc., All rights reserved worldwide.
Please review our Terms, Conditions, Policies, Procedures, Terms of Use and Service.