ccurtin
3/1/2017 - 4:54 AM

Password Protect wp-admin / wp-login.php

Password Protect wp-admin / wp-login.php

<FilesMatch "wp-login.php">
    AuthName "Protected Login"
    AuthType Basic
    AuthUserFile /home/ACCOUNT_NAME/.htpasswds/.htpasswd
    AuthGroupFile /dev/null
    require valid-user
</FilesMatch>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress