Force WordPress to use SSL

Sometimes you need a high level of security for your WordPress website.  Did you know you can force WordPress to use SSL?

Of course this will only work if you have an SSL certificate installed for your domain otherwise you’ll freak your visitors out with invalid SSL certificate warning errors.

Add this line of code to your wp-config.php file located in the root of your WordPress installation.

define(‘FORCE_SSL_ADMIN’, true);

Now all of your site URL’s will begin with https:// and you can stick one to those would-be phishers.

Was this article helpful?
YesNo

Comments are closed.