In order to better protect the access the admin section of your site you can also make WordPress login to go through https.

The following htaccess rules assume that you already have the SSL (secure) certificate configured.

Create or append this text to your .htaccess file.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} wp-login.php
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=302,L,QSA]

Disclaimer: The content in this post is for educational purposes only. Always remember to take a backup before doing any of the suggested steps just to be on the safe side.
Referral Note: When you purchase through a referral link (if any) on this page, we may earn a commission.
If you're feeling thankful, you can buy me a coffee or a beer