WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. tony_k
    Member
    Posted 3 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:

    https://me.com/wp-login.php

    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:

    define('FORCE_SSL_ADMIN');

    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
    Member
    Posted 3 years ago #

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

  3. gewone
    Member
    Posted 3 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! :)

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic