Title: Forced SSL login
Last modified: August 22, 2016

---

# Forced SSL login

 *  Resolved [bee-tee](https://wordpress.org/support/users/bee-tee/)
 * (@bee-tee)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/forced-ssl-login/)
 * Hello GatorDog. Great plugin, I appreciate your work here.
 * I have recently added the following option to my WP config file:
    `define('FORCE_SSL_ADMIN',
   true);`
 * With this option present if you open WP login page using _http_ WordPress replies
   with HTTP 302 response instructing your browser to reopen the page using _https_.
 * With Gator Cache enabled the flow is different: previously cached WP front page
   is being served over _http_ in reply to initial request. No redirect to login
   page over _https_ is observed and no login is possible.
 * Is this because of my misconfiguration or a Gator Cache issue?
 * My essential settings:
    – I do not cache secure SSL https protocol pages – I 
   do not use .htaccess rules as presented in Http tab of Gator Cache Settings.
 * [https://wordpress.org/plugins/gator-cache/](https://wordpress.org/plugins/gator-cache/)

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

 *  Plugin Author [GatorDog](https://wordpress.org/support/users/gatordog/)
 * (@gatordog)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/forced-ssl-login/#post-5763749)
 * Thanks for letting me know about the issue with forcing admin ssl. What’s happening
   is that is_admin is not set since it’s not ssl and the php cache, advanced-cache.
   php, serves the home page before it can redirect to the secure wp-login.php page.
   This incompatibility has been fixed in the latest version, 2.0.5.
 *  Thread Starter [bee-tee](https://wordpress.org/support/users/bee-tee/)
 * (@bee-tee)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/forced-ssl-login/#post-5763776)
 * Thank you for such quick response.
 * Unfortunately, the plugin seems to be broken now.
    It regenerates a page in cache
   every time it is requested (debug timestamp at the end of a page changes on every
   request).
 *  Plugin Author [GatorDog](https://wordpress.org/support/users/gatordog/)
 * (@gatordog)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/forced-ssl-login/#post-5763785)
 * It should say “served by advanced cache” at the bottom of your source. It you’re
   not seeing this it means for some reason it’s not serving the cache. I’d imagine
   it’s due to the last update where it checks the script name. There’s a chance
   this may not work as expected on all hosting. So this has been changed to check
   the url instead for directly accessed php, which should work more universally,
   in the updated version, 2.0.6. Thanks again for letting me know about this issue.
 *  Thread Starter [bee-tee](https://wordpress.org/support/users/bee-tee/)
 * (@bee-tee)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/forced-ssl-login/#post-5763811)
 * > It should say “served by advanced cache” at the bottom of your source.
 * FYI: no, it does not, just the timestamp.
 * I’ve downloaded 2.0.6. It works fine.
 * Thank you very much, Sir.

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

The topic ‘Forced SSL login’ is closed to new replies.

 * ![](https://ps.w.org/gator-cache/assets/icon-128x128.png?rev=983272)
 * [Gator Cache](https://wordpress.org/plugins/gator-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gator-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gator-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/gator-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gator-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gator-cache/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [bee-tee](https://wordpress.org/support/users/bee-tee/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/forced-ssl-login/#post-5763811)
 * Status: resolved