title: Execute an extension-less file as PHP
body: <p>I've looked through a lot of questions, but only seem to find solutions so that the user sees, for example, <code>http://www.example.com/page</code> but the file name is <code>http://www.example.com/page.php</code>.</p>
  
  <p>What I'm looking for, is a way to have a file actually called <code>http://www.example.com/page</code> (not <code>page.php</code>) that the server executed as a regular PHP file.</p>
  
  <p>Would that be possible? (If so, I think it's probably done in the .htaccess file somehow, but I'm not sure.)</p>
  
  <hr>
  
  <h1>EDIT</h1>
  
  <p>So, I'm trying to make a website that only uses one file to show multiple pages and <code>$_SERVER['PATH_INFO']</code> to know which to show. To make it look better, I tried overwriting the shown URL so that the user sees <code>.../page</code> instead of <code>.../page.php</code>, but it somehow didn't recognize the path info when accessing the rewritten page. (Not sure if this makes sense, tried my best to explain.)</p>