title: IIS 7 URL Rewrite - 403 Error
body: <p>I know this question has been asked before, but I haven't found an answer to what I'm running into. I'm trying to redirect a domain (not a sub-domain) to a sub-folder. I'm running IIS 7 and I created a URL rewrite rule like this:</p>
  
  <pre><code>&lt;rule name="subfolder" enabled="true" stopProcessing="true"&gt;
      &lt;match url="(.*)" /&gt;
      &lt;conditions logicalGrouping="MatchAll"&gt;
          &lt;add input="{HTTP_HOST}" pattern="^(www\.)?domain.com$" /&gt;
          &lt;add input="{PATH_INFO}" pattern="subfolder" negate="true" /&gt;
      &lt;/conditions&gt;
      &lt;action type="Rewrite" url="/subfolder/{R:0}" /&gt;
  &lt;/rule&gt;
  </code></pre>
  
  <p>With the rule off, I can navigate to a page like <a href="http://domain.com/subfolder/index.htm" rel="nofollow">http://domain.com/subfolder/index.htm</a>. With it on, I get a 403 error when I try to navigate to <a href="http://domain.com/index.htm" rel="nofollow">http://domain.com/index.htm</a>.</p>
  
  <pre><code>403 - Forbidden: Access is denied.
  
  You do not have permission to view this directory or page using the credentials that you supplied.
  </code></pre>
  
  <p>How do I fix this?</p>