Setting Default Documents

If your site uses a default document that isn't configured on our system (e.g. default.html), you can use a feature of IIS7 to configure this. To set default documents, create a file named web.config and place it in the root of your site. In that file add the following:










Change default.html to your default document. To enable more than one document, add another "" line in the "" section.

If you already use a web.config file for your ASP.NET site, you can just add the following in your "" section:

 





  • 0 brukere syntes dette svaret var til hjelp
Var dette svaret til hjelp?

Related Articles

How can I set custom 404 Error Handlers?

Custom 404's can be set for ASP and .NET sites by adding the below code to the bottom of the...