I use this code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
But when I login in my website, I still get localhost/administration/administration.php.
I tried .htaccess working, if I insert some random code (like xdxdxd), I get Server Error.