Force SSL Usage In The WordPress Admin - WordPress Security | WP Learning Lab

Published: 31 May 2015
on channel: WordPress Tutorials - WPLearningLab
6,501
44

🔥Name Your Own Price🔥 for the 11-Point WP Security Checklist Smart PDF: https://wplearninglab.com/go/wpsecuri...

Code from the tutorial:

define('FORCE_SSL_ADMIN', true);

In this tutorial I'm going to show you how to secure your WordPress admin by forcing every signed in session to use an SSL certificate (HTTPS).

SSL certificates are hosting account add-ons you can easily buy which allow you to encrypt all the traffic on your website using what is called a Secure Socket Layer. This is the same encryption that banks use.

By forcing all signed in users to use the HTTPS protocol you are ensuring that all information based between the user and the server is encrypted.

To make this happen all you have to do is add a single line of code to your wp-config.php file. Let's get to it.

First login into your hosting account cPanel. Then find and click on the File Manager icon and choose the Document Root for the website that you are hardening. This will open the root of the website in another tab.

You can also log into the website root using FTP if you are more comfortable with that.

In the website root folder find and open the wp-config.php file. Paste the code from the top of the entry near the bottom of the file, just above where it says, "That's All! Stop Editing!".

Save the file and your will have forced SSL usage in the WordPress admin.

Please note that you do need to have an SSL certificate installed on your domain, otherwise this won't work. You can contact your webhost to purchase one or find one online by googling "SSL Certificate".

I hope this information helps you! If you have any questions leave a comment below or ping me @WPLearningLab on Twitter.

--------------

If you want more excellent WordPress information check out our website where we post WordPress tutorials daily.

http://wplearninglab.com/

Connect with us:

WP Learning Lab Channel: http://www.youtube.com/subscription_c...

Facebook:   / wplearninglab  

Twitter:   / wplearninglab  

Google Plus: http://google.com/+Wplearninglab

Pinterest:   / wplearninglab  


On this page of the site you can watch the video online Force SSL Usage In The WordPress Admin - WordPress Security | WP Learning Lab with a duration of hours minute second in good quality, which was uploaded by the user WordPress Tutorials - WPLearningLab 31 May 2015, share the link with friends and acquaintances, this video has already been watched 6,501 times on youtube and it was liked by 44 viewers. Enjoy your viewing!