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

Password Protect with .htaccess


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.

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