Title: FORCE_SSL_ADMIN/LOGIN not working?
Last modified: August 19, 2016

---

# FORCE_SSL_ADMIN/LOGIN not working?

 *  Resolved [tony_k](https://wordpress.org/support/users/tony_k/)
 * (@tony_k)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/force_ssl_admin/)
 * 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](https://me.com/wp-login.php)
 * works correctly,
 * but wp was not automatically going to the [https://me.com/wp-login.php](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!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [amd08](https://wordpress.org/support/users/amd08/)
 * (@amd08)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/force_ssl_admin/#post-1530368)
 * How high on the page does it have to be? Once I added it, I can’t login.
 *  [gewone](https://wordpress.org/support/users/gewone/)
 * (@gewone)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/force_ssl_admin/#post-1530403)
 * 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!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘FORCE_SSL_ADMIN/LOGIN not working?’ is closed to new replies.

## Tags

 * [FORCE_SSL_ADMIN](https://wordpress.org/support/topic-tag/force_ssl_admin/)
 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [gewone](https://wordpress.org/support/users/gewone/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/force_ssl_admin/#post-1530403)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
