Enable Full SSL for WordPress

I had the same problem and solved it by moving the two define statements up before the require_once that includes wp-settings.php. Seems this was the issue all along.

Source: https://stackoverflow.com/a/27193576/117268