I would like to permanently redirect these urls only:
http://www.example.com/privacy.php
http://www.example.com/terms.php
http://www.example.com/contacts.php
to:
http://www.example.com/privacy
http://www.example.com/terms
http://www.example.com/contacts
Continuing to serve the contents inside corresponding .php files.
Any help would be greatly appreciated!
Thank you.
P.S. I edited my question because it has been identified as a possible duplicate of another question; the answer of the suggested question doesn't solve my problem
This is .htaccess current content:
RewriteEngine On   
RewriteBase /   
# Adds the www. before any URL   
RewriteCond %{HTTPS} !=on   
RewriteCond %{HTTP_HOST} !^www\..+$ [NC]   
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]   
# Redirects index.php page to the homepage   
RewriteRule ^index\.php/?$ / [R=301,L]   
# Redirects all old pages example.com/?d=124575 to http://www.example.com   
RewriteCond %{THE_REQUEST} ^(GET|POST)\ /\?(.*)\ HTTP   
RewriteRule ^ /? [R=301,L]