title: Adding .htaccess makes Internal Server Error
body: <p>Hi I am trying to remove the <code>.php</code> extension from the url . For that I am following this tutorial <a href="http://sicanstudios.com/post/how-to-remove-php-html-htm-extensions-with-htaccess/" rel="nofollow">remove .php extension</a> . But when I add the <code>.htaccess</code> file to the directory , it shows </p>
  
  <pre><code>Internal Server Error
  
  The server encountered an internal error or misconfiguration and was unable to complete your request.
  
  Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
  
  More information about this error may be available in the server error log.
  </code></pre>
  
  <p>My <code>.htaccess</code> file is :</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^([^/]+)/$ $1.php
  RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.php
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
  RewriteRule (.*)$ /$1/ [R=301,L]
  </code></pre>
  
  <p>Whats wrong?</p>
  
  <p>NB: I am testing all my files in WAMP server. </p>