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

admin.php htpasswd

Solidus

Well-known member
#1
I am trying to htpasswd protect the admin.php file, but I think the url structure of the admin panel prevents this.

<FilesMatch "admin.php">
Require valid-user
AuthType Basic
AuthUserFile ../.htpasswd/.htpasswd
Require valid-user
</FilesMatch>

When this is placed in .htaccess, admin.php* gives me 500 internal server errors. Any way around this?