Created
October 10, 2022 11:03
-
-
Save Zodiac1978/e3d7125cf303ab3b0998837e96e6ea79 to your computer and use it in GitHub Desktop.
Protecting the wp-login.php interferes with the page/post password protection. We need to exclude this page.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Protect wp-login.php without interfering with post/page password protection | |
<files wp-login.php> | |
<If "%{QUERY_STRING} != 'action=postpass'"> | |
# Protect wp-login.php | |
AuthName "Login erforderlich" | |
AuthType Basic | |
AuthUserFile /path/to/password-file/.htpasswd | |
require valid-user | |
</If> | |
</files> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment