How to set default document using web.config

To set the default document of the web site using web.config, add the following lines inside the system.webServer.

  1. <defaultDocument>
  2.  <files>
  3.    <clear />
  4.    <add value="myhomepage.aspx" />
  5.  </files>
  6. </defaultDocument>

Read more

, ,

  1. No comments yet.
(will not be published)
Submit Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Subscribe to comments feed
  1. No trackbacks yet.

SetPageWidth