Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 6th Nov 2012, 05:40 PM   #1
In Denial About Age
War Room Member
 
AnneE's Avatar
 
Join Date: 2008
Location: Catskill mountains of New York
Posts: 741
Thanks: 135
Thanked 180 Times in 106 Posts
Blog Entries: 5
Default
How to make wordpress login go automatically to https
Share on: 
fb share twitter share gplus share more share

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

AnneE is offline  
Unread 7th Nov 2012, 09:12 AM   #2
HyperActive Warrior
War Room Member
 
Join Date: 2004
Location: , , .
Posts: 179
Thanks: 5
Thanked 44 Times in 33 Posts
Default
Re: How to make wordpress login go automatically to https
Share on: 
fb share twitter share gplus share more share

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]
phpg is offline  
The Following User Says Thank You to phpg For This Useful Post:
Unread 7th Nov 2012, 09:19 AM   #3
www.veerotech.net
War Room Member
 
Kingfish85's Avatar
 
Join Date: 2011
Location: Raleigh, NC
Posts: 2,913
Thanks: 424
Thanked 484 Times in 414 Posts
Blog Entries: 2
Default
Re: How to make wordpress login go automatically to https
Share on: 
fb share twitter share gplus share more share

Originally Posted by phpg View Post

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.

|~| VeeroTech Hosting - sales @ veerotech.net
|~| High Performance CloudLinux & LiteSpeed Powered Web Hosting
|~| cPanel & WHM - Softaculous - Website Builder - R1Soft - SpamExperts
|~| Visit us @veerotech Facebook - Twitter - LinkedIn
Kingfish85 is offline  
The Following 2 Users Say Thank You to Kingfish85 For This Useful Post:
Unread 8th Nov 2012, 04:43 AM   #4
Warrior Member
 
JayBansal's Avatar
 
Join Date: 2012
Posts: 21
Thanks: 3
Thanked 7 Times in 7 Posts
Default
Re: How to make wordpress login go automatically to https
Share on: 
fb share twitter share gplus share more share

Nothing to say more than use this plugin Wordpress HTTPS (SSL)
JayBansal is offline  
Closed Thread


Bookmarks

Tags
automatically, https, login, make, wordpress


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




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