Remove .php from url. Have some problem

I trying to remove the .php from the URL and it's working fine. But when i log out and trying to log in from front page i get error from wrong user or password. But from admin i can log in. What is wrong with this code. I found it on some site.

 

RewriteBase /

RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]

RewriteRule ^ %1 [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME}.php -f

RewriteRule ^(.*?)/?$ $1.php [NC,L]

Quote · 4 Jun 2016
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.