title: IIS URL redirect directory
body: <p>I am having an issue using IIS URl redirect module.
  Trying to redirect from www.site.com/directory1/default.aspx
  to www.site.com/directory2/default.aspx</p>
  
  <p>So any request to directory1 needs to go to directory 2. I am going to be disabling the application at directory 1
  Any ideas?
  Currently i have the below, but does not work.</p>
  
  <pre><code>&lt;rewrite&gt;
              &lt;rules&gt;
                  &lt;remove name="Portal Test Redirect" /&gt;
                  &lt;rule name="Portal Test Redirect" patternSyntax="Wildcard"&gt;
                      &lt;match url="*directory1/*" ignoreCase="false" /&gt;
                      &lt;conditions /&gt;
                      &lt;serverVariables /&gt;
                      &lt;action type="Rewrite" url="{R:1}/directory2/{R:2}" appendQueryString="true" /&gt;
                  &lt;/rule&gt;
              &lt;/rules&gt;
          &lt;/rewrite&gt;        
  </code></pre>