title: In IIS can I change the default document per folder via web.config?
body: <p>I have a certain PHP file on my windows server in a directory that requires you to add index.php in order to view it.</p>
  
  <p>The below works:
  <a href="http://example.org/placestorun/index" rel="nofollow noreferrer">http://example.org/placestorun/index</a></p>
  
  <p>But the following does not work:
  <a href="http://example.org/placestorun/" rel="nofollow noreferrer">http://example.org/placestorun/</a></p>
  
  <p>I added a web.config file to the places to run directory to make it work without the index.php using the below code in the folder's web.config file:</p>
  
  <pre><code>&lt;configuration&gt;
     &lt;system.webServer&gt;
      &lt;defaultDocument&gt;
          &lt;files&gt;
              &lt;add value="index.php" /&gt;
          &lt;/files&gt;
      &lt;/defaultDocument&gt;
     &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>The above is not working though.</p>