title: Redirect web.config IIS 8
body: <p>I tried to make a redirect in web.config, but I get a 500 error. The version of IIS is 8.5, but before I was on version 6. What is wrong with this syntax ?</p>
  
  <pre><code>    &lt;location path="Test/test.aspx"&gt;
  &lt;system.webServer&gt;
  &lt;httpRedirect enabled="true" destination="http://domain/Test/IT/test.aspx" httpResponseStatus="Permanent" /&gt;
  &lt;/system.webServer&gt;
  &lt;/location&gt;
  </code></pre>
  
  <hr>
  
  <p>I get an this error message : Internal error - 500. I deleted the lines in web.config and everything works again. </p>
  
  <p>I tried URL Rewrite feature, but I get an error. </p>
  
  <p>"Cannot read configuration file due to insufficient permissions"</p>
  
  <p>I am trying to fix with these instructions below, but the system asked me for user/password. I am as administrator, but those credentials didn't work. </p>
  
  <p><a href="https://stackoverflow.com/questions/5615296/cannot-read-configuration-file-due-to-insufficient-permissions">Cannot read configuration file due to insufficient permissions</a></p>
  
  <p>The HttpRedirectionModule is installed in the server. Also, RewriteModule</p>