Requiring SSL encryption for WordPress administration

I was digging around for WordPress plugins last night that would allow me to secure the administrative login page for my WordPress installations. Most of the plugins are only compatible with WordPress 2.7.x or earlier, so I was a little concerned about them working with WordPress 2.8.2.

Then I stumbled upon the WordPress documentation that shows you how to require SSL with no plugins at all. If you’re using WordPress 2.6+, you can use these super-simple instructions:

Require encryption just for the /wp-admin/ login, but leave the rest of the administrative area on HTTP:

# Add this line to wp-config.php
define('FORCE_SSL_LOGIN', true);

To encrypt the login and the entire administrative area:

# Add this line to wp-config.php
define('FORCE_SSL_ADMIN', true);

Of course, for this to work, you’ll need virtual hosts on ports 80 and 443 for your blog. Also, you’ll need an SSL certificate for your blog. You can snag one from a reputable provider or make your own.

Tagged , , ,

4 thoughts on “Requiring SSL encryption for WordPress administration

  1. ManySSL says:

    Your post is shown many benefits of encryption.
    Especially, WordPress if some of you are from big firm it very very useful.

    Thank.

  2. Works like a charm! Thanks

  3. Torres says:

    Thanks. Such a simple solution too.

  4. kadir avci says:

    Good encription for me. Thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>