title: Redirect rule in web.config
body: <p>I was looking into this <a href="https://stackoverflow.com/questions/10098632/seemingly-simple-redirect-in-iis-using-web-config-file">Seemingly simple redirect in IIS using web.config file</a> because I have a similar situation, but the approach mentioned there doesn't seem to be working for me.</p>
  
  <p>I have a help section on a web site, which for now I want it to redirect to another place. The rest of the site should stay the same, which means that only the help section/content should make the user go to another site:</p>
  
  <p>device.domain.com/help</p>
  
  <p>device.domain.com/help/version</p>
  
  <p>Should make the request go to</p>
  
  <p>company.custhelp.com</p>
  
  <p>But for example device.domain.com/api should still work. This is what I tried. If I test the pattern inside of IIS it says that it will work. What am I missing?</p>
  
  <pre><code>&lt;system.webServer&gt;  
    &lt;rewrite&gt;
      &lt;rules&gt;
        &lt;rule name="Help Redirect" stopProcessing="true"&gt;            
          &lt;match url="(.*)/help(.*)" ignoreCase="true" /&gt;
          &lt;action type="Redirect" url="http://company.custhelp.com/" appendQueryString="false" redirectType="Permanent" /&gt;
        &lt;/rule&gt;
      &lt;/rules&gt;
    &lt;/rewrite&gt;
    ...
  &lt;/system.webServer&gt;
  </code></pre>