title: Robots.txt file not showing due to Web.config file
body: <p>I'm trying to access my robots.txt file with a direct link (<a href="https://www.example.com/robots.txt" rel="nofollow noreferrer">https://www.example.com/robots.txt</a>) however I keep getting a 404 error. I suspect it has something to do with my web.config file but I'm not entirely sure. </p>
  
  <p>Here is my web.config file</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;!-- BEGIN rule TAG FOR HTTPS REDIRECT --&gt;
               &lt;rule name="Force HTTPS" enabled="true"&gt;
                 &lt;match url="(.*)" ignoreCase="false" /&gt;
                 &lt;conditions&gt;
                   &lt;add input="{HTTPS}" pattern="off" /&gt;
                 &lt;/conditions&gt;
                 &lt;action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent" /&gt;
               &lt;/rule&gt;
               &lt;!-- END rule TAG FOR HTTPS REDIRECT --&gt;
              &lt;rule name="Rewrite to index.php"&gt;
                  &lt;match url="index.php|images|test.php" /&gt;
                  &lt;action type="None" /&gt;
              &lt;/rule&gt;
              &lt;rule name="Rewrite CI Index"&gt;
                  &lt;match url=".*" /&gt;
                  &lt;conditions&gt;
                      &lt;add input="{REQUEST_FILENAME}" pattern="css|js|jpg|jpeg|png|gif|ico|htm|html" negate="true" /&gt;
                  &lt;/conditions&gt;
                  &lt;action type="Rewrite" url="index.php/{R:0}" /&gt;
              &lt;/rule&gt;
          &lt;/rules&gt;
      &lt;/rewrite&gt;
  &lt;/system.webServer&gt;
  </code></pre>
  
  <p></p>
  
  <p>And my robots.txt file is simply </p>
  
  <p>User-agent: *
  Disallow:
  Sitemap: <a href="https://www.example.com/sitemap.xml" rel="nofollow noreferrer">https://www.example.com/sitemap.xml</a></p>
  
  <p>I added the robots.txt file in the root directory of my web app. Any ideas for why it isn't showing up.</p>
  
  <p>Thanks</p>