Fellow Folks, When utilizing htaccess to password safeguard 1 file inside the same directory

Given: folderX with within it file.php and password file .htpasswd and .htaccess file with below code:

<Files file.php>
AuthUserFile /var/www/vhosts/website.com/httpdocs/folderX/.htpasswd
Require valid-user
AuthName "Login"
AuthType Basic
</Files>

When code is said out then your file.php is alright HTTP status 200 OK. Once the code is avtive, the file redirects towards the home page saying:

HTTP/1.1 301 Moved Permanently
Server: Apache/2..54 (Fedora)
WWW-Authenticate: Fundamental realm="Login"

What is wrong? Thanks greatly for just about any suggestions about this piculiar error