title: How to hide .php extension in .htaccess
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4026021/remove-php-extension-with-htaccess">Remove .php extension with .htaccess</a>  </p>
  </blockquote>
  
  
  
  <p>I'm trying to hide the .php file extension but for some reason can't get it to work. My latest attempt was the following:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
     RewriteEngine on
     RewriteRule ^folder/([a-zA-Z_\-0-9]+)/?$ /folder/$1.php
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>I have tried many different variances of code I have found online but still no luck. The .htaccess file is placed within the root directory.</p>