Well I have no idea how else to explain. password protecting the wp-admin directory to add another layer of security is a common thing:
https://www.wpbeginner.com/wp-tutorials/how-to-password-protect-your-wordpress-admin-wp-admin-directory/
It’s supposed to protect the wp-admin directory ONLY for admins and not for users but it also protects the login page for users as well and once users try to log in, it pops up. since users don’t have access to that password, it makes no sense to be displayed to users, not to mention that it doesn’t affect the users login page at all and users can simply cancel it and log in as usual without it.
So I was thinking maybe there was a rule for .htaccess or a code snippet to hide it for users.
It’s also worth mentioning that it creates a separate .htaccess file in wp-admin folder when I password protect the wp-admin directory:
AuthType Basic
AuthName "Protected 'public_html/wp-admin'"
AuthUserFile "/home/user/.htpasswds/public_html/wp-admin/passwd"
Require valid-user
Maybe adding a line to hide it for the users page might fix the issue.
-
This reply was modified 1 year, 7 months ago by euro11.
-
This reply was modified 1 year, 7 months ago by Jan Dembowski.