admin.php htpasswd

m1ne

Well-known member
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?
 
Top Bottom