Skip to content

Force WordPress Admin Login Page to use HTTPS/SSL

Recently in having to make a WordPress install PCI compliant, the compliance agency required the WP-Admin login to be transmitting login information via HTTPS.  Granted we had our SSL Certificate in place correctly, but in order to force WordPress to us HTTPS on it’s login page, drop this code in your wp-config.php file and HTTPS will now work for both your /wp-login.php and /wp-admin URLs:

define('FORCE_SSL_ADMIN', true);

For more details, reference WordPress Codex on Administration Over SSL

Find this useful? Take just a moment and give a $1. Thanks!
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)