Possible Duplicate:
Remove .php extension with .htaccess
I want to make all my website URLs, myurl/webpageexamples.php
, to be renamed to its non-extension version myurl/webpageexamples
, if possible in .htaccess and at the same time redirect all traffic from myurl/webpageexamples.php
to the new myurl/webpageexamples
.
I have found several to redirect from PHP to non-PHP like:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\.html$ /$1 [L,R=301]
What I have:
myurl/webpageexamples.php
What I want:
myurl/webpageexamples
I would like to have the SEO score transferred to new myurl/webpageexamples
.