How to: Force using SSL on wp-admin directory

March 20, 2009 at 10:59 am

If SSL is enabled on your webserver, you should definitely use it to protect your wp-admin directory a bit more. Activating SSL on your WordPress blog is definitely easy. Just read one.

What is SSL? According to Wikipedia:
“SSL is a cryptographic protocol that provide security and data integrity for communications over TCP/IP networks such as the Internet. TLS and SSL encrypt the segments of network connections at the Transport Layer end-to-end.”
In other words, SSL can secure transactions over the internet.

Not all hosting services allows you to use SSL. Though, if you’re hosted on Wp WebHost or HostGator, then SSL is enabled.

Once you checked that your webserver can handle SSL, opne your wp-config.php file (Located at the root of your WordPress install) and paste the following:

define('FORCE_SSL_ADMIN', true);

Save the file, and you’re done!