• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Password Protect with .htaccess

#1
Hi,

If I protect my admin.php using the .htaccess method, anyone know why I'm getting a 500 - Internal Server Error?

I'm using this in my .htaccess.

PHP:
<Files admin.php>
  AuthName "Protected Area!"
  AuthType Basic
  AuthUserFile /root/xxxxxx/xxxxxxxx/.htpasswd
  Require valid-user
</Files>