Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   How to make wordpress login go automatically to https (https://www.warriorforum.com/programming/708088-how-make-wordpress-login-go-automatically-https.html)

AnneE 6th November 2012 05:40 PM

How to make wordpress login go automatically to https
 
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

phpg 7th November 2012 09:12 AM

Re: How to make wordpress login go automatically to https
 
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]


Kingfish85 7th November 2012 09:19 AM

Re: How to make wordpress login go automatically to https
 
Quote:

Originally Posted by phpg (Post 7304193)
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]


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.

JayBansal 8th November 2012 04:43 AM

Re: How to make wordpress login go automatically to https
 
Nothing to say more than use this plugin Wordpress HTTPS (SSL)


All times are GMT -6. The time now is 07:50 AM.