title: Yii2/PHP/IIS7 - URL Rewrite and File Permissions (Pretty URL issue)
body: <p>I have a web.config file with the following text, although not relevant to my problem...</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="Pretty URL"&gt;
                      &lt;match url="." ignoreCase="false" /&gt;
                      &lt;conditions logicalGrouping="MatchAll"&gt;
                          &lt;add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /&gt;
                          &lt;add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /&gt;
                      &lt;/conditions&gt;
                      &lt;action type="Rewrite" url="index.php" /&gt;
                  &lt;/rule&gt;
              &lt;/rules&gt;
          &lt;/rewrite&gt;
      &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Normally when I develop on my Windows machine the folder with my PHP source has permissions for all authenticated users and pretty URLs in my Yii2 website works without any issues.</p>
  
  <p>Now, my next project requires me to deploy on a Windows machine where non-admin users will also use and I tested deploying a Yii2 website to a folder that gives IUSR user the ability to List, Read, &amp; Execute files.</p>
  
  <p>The website works, but the pretty url does not.</p>
  
  <p>If I copy the folder contents to another location with regular authenticated user and SYSTEM permissions, it works as expected.</p>
  
  <p>I think I am missing some permissions that will enable pretty URL to work properly with IIS7 URL Rewrite module, but not sure what.</p>