title: How to remove sub directory and .php extension from all urls in an includes folder?
body: <p>I've searched for 'how to remove subdirectory from url' a lot and most of the answers are fairly nuanced and therefore can't be applied to my scenario.</p>
  
  <p>This is the closest I can get to a succinct answer:</p>
  
  <p><a href="https://stackoverflow.com/questions/7375235/remove-sub-directory-and-file-extension">Remove sub directory and file extension</a></p>
  
  <p>Which has the question:</p>
  
  <blockquote>
    <p>If I have site.com/page/about.php</p>
    
    <p>How can I remove the sub directory and file extension?</p>
    
    <p>Example: site.com/about</p>
  </blockquote>
  
  <p>And provides the answer:</p>
  
  <pre><code>Options +FollowSymLinks
  RewriteEngine On 
  RewriteRule ^about(\/?)$ /page/about.php [NC,L]
  </code></pre>
  
  <p>My scenario and desired outcome is very similar, I have all my 'pages' in an includes folder eg:</p>
  
  <pre><code>site.com/includes/home.php
  site.com/includes/about.php
  site.com/includes/page3.php
  </code></pre>
  
  <p>I want these files (and any files that exists in the includes folder) to be accessible at URL's like:</p>
  
  <pre><code>site.com/home
  site.com/about
  site.com/page3
  </code></pre>