title: Redirect .php URLs to URLs without extension
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 want to make all my website URLs, <code>myurl/webpageexamples.php</code>, to be renamed to its non-extension version <code>myurl/webpageexamples</code>, if possible in <a href="https://en.wikipedia.org/wiki/.htaccess" rel="nofollow noreferrer">.htaccess</a> and at the same time redirect all traffic from <code>myurl/webpageexamples.php</code> to the new <code>myurl/webpageexamples</code>.</p>
  
  <p>I have found several to redirect from PHP to non-PHP like:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)\.html$ /$1 [L,R=301]
  </code></pre>
  
  <p>What I have:</p>
  
  <pre><code>myurl/webpageexamples.php
  </code></pre>
  
  <p>What I want:</p>
  
  <pre><code>myurl/webpageexamples
  </code></pre>
  
  <p>I would like to have the SEO score transferred to new <code>myurl/webpageexamples</code>.</p>