title: IIS7 Rewrite Rule not working
body: <p>I have created a this rule:</p>
  
  <pre><code>&lt;rewrite&gt;
          &lt;rules&gt;
              &lt;rule name="ImageRedirect" stopProcessing="false"&gt;
                  &lt;match url="^(.*)/(.*)/" /&gt;
                  &lt;action type="Rewrite" url="http://www.lrgimages.com/ImageRewrite.aspx?=img={R:2}" logRewrittenUrl="true" /&gt;
              &lt;/rule&gt;
          &lt;/rules&gt;
      &lt;/rewrite&gt;
  </code></pre>
  
  <p>I keep getting a 404.0 message like the rule is not working or IIS is not picking it up. In the test parttern section for the rule, the pattern tests fine. If I go directly to the <a href="http://www.lrgimages.com/ImageRewrite.aspx" rel="nofollow">http://www.lrgimages.com/ImageRewrite.aspx</a> that page loades, but not when I try: <a href="http://www.lrgimages.com/TestImage" rel="nofollow">http://www.lrgimages.com/TestImage</a></p>
  
  <p>any thoughts?</p>
  
  <p>Update: I figured it out. It does not take into acount hte <a href="http://www.DomainName.com" rel="nofollow">http://www.DomainName.com</a> when rewriting a url. Redirects work this way since htat is what is is really doing. I am used to other rewrite engines not taking into account the <a href="http://www.DomainName.com" rel="nofollow">http://www.DomainName.com</a> . Thanks all you lead me in the right direction.</p>