title: Remove index.php of Codeigniter on IIS?
body: <p>I understand I can remove the 'index.php' part of the url with the following web.config code:</p>
  <pre><code>&lt;rewrite&gt;
    &lt;rules&gt;
      &lt;rule name=&quot;Rule&quot; stopProcessing=&quot;true&quot;&gt;
        &lt;match url=&quot;^(.*)$&quot; ignoreCase=&quot;false&quot; /&gt;
        &lt;conditions&gt;
          &lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsFile&quot; ignoreCase=&quot;false&quot; negate=&quot;true&quot; /&gt;
          &lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsDirectory&quot; ignoreCase=&quot;false&quot; negate=&quot;true&quot; /&gt;
          &lt;add input=&quot;{URL}&quot; pattern=&quot;^/favicon.ico$&quot; ignoreCase=&quot;false&quot; negate=&quot;true&quot; /&gt;
        &lt;/conditions&gt;
        &lt;action type=&quot;Rewrite&quot; url=&quot;index.php/{R:1}&quot; appendQueryString=&quot;true&quot; /&gt;
      &lt;/rule&gt;
    &lt;/rules&gt;
  &lt;/rewrite&gt;
  </code></pre>
  <p>Problem is I have CI installed in a sub-directory (mydomain.com/codeigniter) and I'm having trouble understanding the web.config file.</p>
  <p>Do you know how to change this so it works for a sub-directory?</p>