title: web.config rewrite rule not working in Azure static website in blob storage
body: <p>I have a single page React app hosted in Azure blob storage but am getting an <strong>The requested content does not exist.</strong> error when deep linking into a page:</p>
  
  <p><a href="https://i.stack.imgur.com/f5v7j.png" rel="noreferrer"><img src="https://i.stack.imgur.com/f5v7j.png" alt="enter image description here"></a></p>
  
  <p>I've <strong>enabled static website option</strong> in the storage account:</p>
  
  <p><a href="https://i.stack.imgur.com/guiTv.png" rel="noreferrer"><img src="https://i.stack.imgur.com/guiTv.png" alt="enter image description here"></a></p>
  
  <p>The files are all in place in the $web container:</p>
  
  <p><a href="https://i.stack.imgur.com/FNpWE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/FNpWE.png" alt="enter image description here"></a></p>
  
  <p>This includes the following <strong>web.config</strong> with a rewrite rule that is supposed to let index.html handle all the routing:</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="React Routes" stopProcessing="true"&gt;
            &lt;match url=".*" /&gt;
            &lt;conditions logicalGrouping="MatchAll"&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="/" appendQueryString="true" /&gt;
          &lt;/rule&gt;
        &lt;/rules&gt;
      &lt;/rewrite&gt;
    &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Can anyone see where I've gone wrong?</p>