fbpx
Home » Blog » Force WordPress to use SSL

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.

Get Your Free Security Fundamentals eBook

Enhance your website security with this free, quick and easy to implement guide.

3d-cover
  • This field is for validation purposes and should be left unchanged.

Keep In Touch

Wil

Wil is a dad, consultant, developer, conference organiser, speaker and business mentor. He co-organizes the WordPress Sydney meetup group and has been on the orgnising committee for WordCamp Sydney since 2014. He speaks at many technical events and contributes to the WordPress open source project. His likes are chillies, craft beer and electrogravitics.

Comments are closed.

If You Enjoyed This Post
Join Our Newsletter
Give it a try, you can unsubscribe anytime.
Close