title: Redirect a php url to shtml in IIS7 using the web.config file
body: <p>The entire site I recently built goes down every time I try to redirect a path with index.php in it.</p>
  
  <p>Any suggestions on what's causing the problem?</p>
  
  <p>Thank you in advance!</p>
  
  <p>Code:</p>
  
  <pre><code>?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
       &lt;system.webServer&gt;
           &lt;defaultDocument&gt;
               &lt;files&gt;
                   &lt;add value="index.shtml" /&gt;
               &lt;/files&gt;
           &lt;/defaultDocument&gt;
       &lt;/system.webServer&gt;
       &lt;location path="index.php/terms-of-use/"&gt;
            &lt;system.webServer&gt;
               &lt;httpRedirect enabled="true" destination="http://www.nortridge.com/legal-disclaimer.shtml" exactDestination="true" httpResponseStatus="Permanent" /&gt;
            &lt;/system.webServer&gt;
       &lt;/location&gt;
  &lt;/configuration&gt;
  </code></pre>