.Net Web.config simple rewrite rule for IIS/IISExpress

A simple example of a rewrite that can be placed in a .Net Web.config file.

 <system.webServer>
    <rewrite>
      <rules>
        <rule name="RewriteRule" stopProcessing="true">
          <match url="^url"/>
          <action type="Rewrite" url="somewhere-else"/>
        </rule>
      </rules>
    </rewrite>
  </system.webServer>

Leave a Reply

Your email address will not be published. Required fields are marked *