Skip to content

Force WordPress Admin Login Page to use HTTPS/SSL

This content will be shown before all post

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

This content will be shown after all post