title: mod rewrite problem
body: <p>i tried this code to hide the php file extension</p>
  
  <p>i have this url <a href="http://localhost/login/emprego.php" rel="nofollow">http://localhost/login/emprego.php</a> and i want <a href="http://localhost/login/emprego" rel="nofollow">http://localhost/login/emprego</a></p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
     Options +FollowSymLinks
     Options +Indexes
     RewriteEngine On
     RewriteCond %{SCRIPT_FILENAME} !-d
     RewriteRule ^([^\.]+)$ $1.php [NC,L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>and this</p>
  
  <pre><code>RewriteCond %{REQUEST_FILENAME}.php -f
  RewriteRule !.*\.php$ %{REQUEST_FILENAME}.php [L]
  </code></pre>
  
  <p>but the result is the url with the file extension in the two cases. I already restarted the apache server</p>
  
  <p>what is the problem?</p>
  
  <p>thanks</p>