In order to protect the ClassicPress installation, I’ve previously used a snippet like this in my .htaccess file:
<FilesMatch "wp-login.php"> AuthName "Members and Admin only" AuthUserFile "/home/account/.htpasswds/folder/.htpasswd" AuthType Basic require valid-user </FilesMatch>
This would then prompt the user to provide a valid username and password before getting to the actual login screen. This works with WordPress, but for some reason it does not work with ClassicPress.
The same goes for this:
RewriteRule ^login$ https://URL/wp-login.php [NC,L] which is a simple way of changing the login URL. It does not work either.
Is there a specific CP way I should do this? CP works good otherwise.