How to make wordpress login go automatically to https

by 3 replies
4
Hi, i have SSL set up on one of my sites and it was recommended to me that I also make the wp-login.php for that site redirect automatically to https://domainname.com/wp-login.php

How would I do that?

Thanks for the help,
Anne
#programming #automatically #https #login #make #wordpress
  • Banned
    [DELETED]
  • Add this to your .htaccess :

    Code:
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteCond %{REQUEST_URI} wp-login\.php
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
    • [ 1 ] Thanks
    • [1] reply
    • Yup. In addition to that, I would also recommend password protecting the wp-admin directory. This will add an additional layer of security. Make sure the username & password for the directory itself are different from your Wordpress login info.
      • [ 2 ] Thanks
  • Nothing to say more than use this plugin Wordpress HTTPS (SSL)

Next Topics on Trending Feed