301 Redirects in ASP.NET IIS7.x Only

Add the following lines to your web.config inside of the  <configuration /> section.

  <location path="old_page.aspx">
    <system.webServer>
      <httpRedirect enabled="true" destination="new_page.aspx" httpResponseStatus="Permanent" />
    </system.webServer>
  </location>

Add Feedback