[resolved] FORCE_SSL_ADMIN/LOGIN not working? (3 posts)

  1. tony_k
    Posted 6 years ago #

    i burned a few cycles on this issue, and just resolved it, so i thought i'd share.

    i added:

    define('FORCE_SSL_ADMIN', true);

    to wp-config.php

    i verified that:


    works correctly,

    but wp was not automatically going to the https://me.com/wp-login.php for logins.

    i goog-ed around and couldn't find similar complaints.

    after some head scratching, on a lark, i moved the line:


    from the bottom of wp-config.php to the top and lo-and-behold it started working.

    so beware, the line placement order !!! ;)

    happy pressing!

  2. amd08
    Posted 6 years ago #

    How high on the page does it have to be? Once I added it, I can't login.

  3. gewone
    Posted 5 years ago #

    Big thanks to you tony_k!

    I was going _phrenic_ due to enforcing SSL admin login not working.
    Googl'd the define param and found your (this) thread.
    Moved the define to the top of wp-config.php, now works flawless! :)


Topic Closed

This topic has been closed to new replies.

About this Topic