title: How to remove .php from a certain file (with Apache .htaccess)?
body: <p>I want to remove the php extension for a certain file (only this!). BUT: It uses get parameters and they should remain!</p>
  
  <p>I tried it with my <code>.htaccess</code> and something like: <code>RewriteEngine on</code> followed by either</p>
  
  <p><code>RewriteRule ^file(.*)$ file.php$1</code></p>
  
  <p>or</p>
  
  <p><code>RewriteRule ^file(.+)$ file.php$1</code></p>
  
  <p>But it doesn't work. (First gives error 500, second gives 404)</p>
  
  <p>Example what I want to call in the browser:</p>
  
  <p><code>file?param=asd&amp;foo=bar</code></p>
  
  <p>It should call as:</p>
  
  <p><code>file.php?param=asd&amp;foo=bar</code></p>