title: IIS web.config condition
body: <p>I have an Windows server with the following <code>web.config</code> setting.
  The issue is the line: <code>&lt;remove fileExtension=".json" /&gt;</code></p>
  
  <p>How can I rewrite this to allow <code>.json</code> files in the <code>videos</code> directory?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
      &lt;system.webServer&gt;
          &lt;defaultDocument&gt;
              &lt;files&gt;
                  &lt;clear /&gt;
                  &lt;add value="index.php" /&gt;
                  &lt;add value="index.html" /&gt;
              &lt;/files&gt;
          &lt;/defaultDocument&gt;
          &lt;rewrite&gt;
              &lt;rules&gt;
                  &lt;rule name="Imported Rule 1" stopProcessing="false"&gt;
                      &lt;match url="^(.*)$" ignoreCase="false" /&gt;
                      &lt;conditions logicalGrouping="MatchAll"&gt;
                          &lt;add input="{R:1}" pattern="^(index\.php|videos)" ignoreCase="false" negate="true" /&gt;
                      &lt;/conditions&gt;
                      &lt;action type="Rewrite" url="/index.php/{R:1}" /&gt;
                  &lt;/rule&gt;
              &lt;/rules&gt;
          &lt;/rewrite&gt;
          &lt;httpErrors errorMode="Detailed" /&gt;
          &lt;security&gt;
              &lt;requestFiltering&gt;
                  &lt;requestLimits maxAllowedContentLength="123456789" /&gt;
              &lt;/requestFiltering&gt;
          &lt;/security&gt;
          &lt;staticContent&gt;
              &lt;remove fileExtension=".json" /&gt;&lt;!-- NEED CONDITION --&gt;
              &lt;mimeMap fileExtension=".woff2" mimeType="application/font-woff2" /&gt;
          &lt;/staticContent&gt;
      &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>