title: match url regexp for subfolder on IIS 7 with web.config
body: <p>I am using get simple cms on my ISS server (actually have to use ISS) and there is a plugin to enable rewrite on ISS with <code>web.config</code>.</p>
  
  <p>web.config source:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
  &lt;system.webServer&gt;
      &lt;rewrite&gt;
          &lt;rules&gt;
              &lt;rule name="GetSimple Fancy URLs" stopProcessing="true"&gt;
                  &lt;match url="^([^/]+)/?$" /&gt;
                  &lt;conditions&gt;
                      &lt;add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /&gt;
                      &lt;add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /&gt;
                  &lt;/conditions&gt;
                  &lt;action type="Rewrite" url="?id={R:1}" /&gt;
              &lt;/rule&gt;
       &lt;/rules&gt;
      &lt;/rewrite&gt;
  &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>but my CMS on both main folder <code>/</code> and sub folder <code>/en</code> such as:</p>
  
  <p><a href="http://domainname.com/" rel="nofollow">http://domainname.com/</a> (main cms)
  <a href="http://domainname.com/en/" rel="nofollow">http://domainname.com/en/</a> (another cms on subfolder)</p>
  
  <p>with the <code>web.config</code> above, main cms working successfully but the cms on subfolder not working (gives 404 as before did)</p>
  
  <p>how can I implement that subfolder rule to <code>web.config file</code>? so 2 cms working successully.</p>
  
  <p>I tried to place same web.config file under subfolder (<code>/en</code>) but it did not work.</p>
  
  <p>Thanks a lot,</p>