title: Running PHP without extension without using mod_rewrite?
body: <p>Using Apache 2.2 and PHP 5, what's the best way to run PHP without the <code>.php</code> extension? For example, I have a script called <code>app.php</code> and I like to invoke it as:</p>
  
  <p><a href="http://example.com/app" rel="nofollow noreferrer">http://example.com/app</a></p>
  
  <p>Please notice that I still want to keep the <code>.php</code> extension to the file and I don't have <code>mod_rewrite</code>. Don't want use <code>index.php</code> either because it requires too many directories.</p>
  
  <p>I did find one way by adding this to my <code>.htaccess</code>,</p>
  
  <pre><code>AddHandler server-parsed .php
  SetHandler application/x-httpd-php
  AddHandler application/x-httpd-php .php
  </code></pre>
  
  <p>The page runs a little slower by using this. I suspect it invokes SSI on every PHP page. Wonder if there are any better ways to accomplish this.</p>