How to Hiding php file extension
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/8371634/hide-php-extension-htaccess">hide .php extension - htaccess</a>  </p>
</blockquote>



<p>I am using the code below in my .htacess file to remove the .php extension from my php files while viewed in a web browser, however if the user places .php at the end of the file name while in the browser the page works but if they place .html or .asp etc it will not work. I want the files to render correctly regardless of the extension the user places on the file in the browser. How can I do this?</p>

<p>I'm not using a CMS such as Wordpress or Drupal, just individual php files. </p>

<pre><code>RewriteRule ^([a-z]+)/([a-z\-]+)$ /$1/$2.php [L]
</code></pre>
