Skip to content

Instantly share code, notes, and snippets.

@tuxmartin

tuxmartin/.htaccess

Created Aug 25, 2020
Embed
What would you like to do?
apache http basic auth for url wp-login.php
# --- HTTP BASIC AUTH /wp-login.php ------------------
SetEnvIf Request_URI "/wp-login.php" auth=1
AuthName "Please login."
AuthType Basic
AuthUserFile /var/www/.htpasswd
Order Allow,Deny
Satisfy any
Allow from all
Require valid-user
Deny from env=auth
# --- HTTP BASIC AUTH /wp-login.php ------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.