IIS7 rewrite module
<p>I got a problem with IIS 7 rewrite module rule</p>

<p>I want it to change any url from below format:</p>

<p><a href="http://www.mysite.com/files/2010/04/background6.jpg" rel="nofollow">http://www.mysite.com/files/2010/04/background6.jpg</a></p>

<p>to new url like this:
<a href="http://www.mysite.com/=" rel="nofollow">http://www.mysite.com/=</a>"/wp-includes/ms-files.php?file=2010/04/background6.jpg</p>

<p>I added a rule to web.config</p>

<pre><code>&lt;rule name="Avatar"&gt;
    &lt;match url="^/files/(.*)$" /&gt;
     &lt;action type="Rewrite" url="/wp-includes/ms-files.php?file={R:1}" /&gt;
&lt;/rule&gt;
</code></pre>

<p>but it does not work, it takes me forever to debug it.</p>

<p>any helps?</p>

<p>thanks you very much</p>

<p>Brian Tran</p>
