On Tue, Feb 9, 2021 at 10:08 AM Jason Long <hack3rcon@xxxxxxxxx.invalid> wrote: > > Hello, > I want to set a password for the WordPress logging page and when someone visit "https://mywebsite.com/wp-admin" then Apache asks a username and password and then show the logging page. Something like https://www.tecmint.com/phpmyadmin-login-password-protection-htaccess/ > If my WordPress directory is "/var/www/wp", then is below lines OK? > > <Directory /var/www/wp/wp-admin/> > AuthType Basic > AuthName "Restricted Content" > AuthUserFile /etc/httpd/.htpasswd > Require valid-user > </Directory> Try it and see? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx