title: Removing the PHP file type extension
body: <p>I'm using this in my top level .htaccess to remove the PHP file type extension on my *.php files.</p>
  
  <pre><code>RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^([^\.]+)$ $1.php [NC,L]
  </code></pre>
  
  <p>But I have discovered it also prevents my browser from calling the index.php page in my sub-directories. I need to include /index.php explicitly in the URL.</p>
  
  <p>Is there a better way to remove the PHP file type extension on my *.php files?</p>