title: confusion regarding 301 redirect from folder to subfolder in web.config
body: <p>Say I have my api under this url
  <code>http://www.example.net/api/trythis</code> and I would like to redirect to <code>http://www.example.net/api/v1/trythis</code>, so in future I can have <code>http://www.example.net/api/v2/trythis</code> or <code>http://www.example.net/api/v3/trythis</code></p>
  
  <p>I am thinking of doing this in web.config: </p>
  
  <pre><code>  &lt;system.webServer&gt;
          &lt;rewrite&gt;
              &lt;rules&gt;
                  &lt;rule name="Root Hit Redirect" stopProcessing="true"&gt;
                      &lt;match url="/api/*" /&gt;
                      &lt;action type="Redirect" url="/api/v1/*" /&gt;
                  &lt;/rule&gt;
              &lt;/rules&gt;
          &lt;/rewrite&gt;
      &lt;/system.webServer&gt;
  </code></pre>
  
  <p>However, if someone access url <code>/api/v2/trythis or /ap1/v3/trythis</code>, won't they be redirected to <code>/api/v1/trythis</code>? So it will defeat the purpose of versioning?</p>