title: How to make home page as default page in asp.net
body: <p>How can i set default home page in asp <code>web.config</code> file.<br>
  i have already written this code :     </p>
  
  <pre><code>&lt;urlMappings&gt;
    &lt;add url="/" mappedUrl="Home.aspx"/&gt;
    &lt;add url="Default.aspx" mappedUrl="Home.aspx"/&gt;
  &lt;/urlMappings&gt;     
  </code></pre>
  
  <p>and also tried this    </p>
  
  <pre><code>&lt;defaultDocument&gt;
    &lt;files&gt;
      &lt;add value="Home.aspx" /&gt;
    &lt;/files&gt;
  &lt;/defaultDocument&gt;
  </code></pre>
  
  <p>but i guess its not working. when i type <code>www.example.com</code> it says directory listing is disabled, but does not redirect to <code>www.example/Home.aspx</code>.     </p>
  
  <p>I dont want to enable directory listing but if someone types <code>www.example.com</code> he should be send to <code>www.example.com/Home.aspx</code></p>