• Resolved notschew69

    (@notschew69)


    Hi there,

    My site is running on https:// only and the plugin doesn´t seem to work with it. It works perfectly with http://

    Any chance on getting it to work on https://?

    Thanks,
    Notschew

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @notschew69,

    Please give more details (website url – where the maintenance mode is activated, describe the issue). What do you mean when you say “doesn’t seem to work”?
    I’m asking because I’m using it on multiple websites with https and it works like a charm.

    Thanks.

    • This reply was modified 6 years, 7 months ago by George J.
    • This reply was modified 6 years, 7 months ago by George J.
    • This reply was modified 6 years, 7 months ago by George J.
    Thread Starter notschew69

    (@notschew69)

    Hi George,

    My website is accessible through http:// and https:// while I prefer using https:// (it´s a Woo Commerce shop). When I install and activate your plugin then the http:// version is locked, but not the https:// version. The https:// version is still fully accessible.

    Cheers,
    Notschew

    @notschew69 I can’t replicate the issue, but I believe there is a redirection issue… and you should try this solution:

    Edit wp-content/plugins/wp-maintenance-mode/includes/classes/wp-maintenance-mode.php and replace this line:

    
    add_action('init', array($this, 'init'));
    

    With this line:

    
    add_action((is_admin() ? 'init' : 'template_redirect'), array($this, 'init'));
    

    Thanks.

    Thread Starter notschew69

    (@notschew69)

    Works like a charm now, thank you very much 🙂

    • This reply was modified 6 years, 7 months ago by notschew69.
    • This reply was modified 6 years, 7 months ago by notschew69.
    • This reply was modified 6 years, 7 months ago by notschew69.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not working on https://’ is closed to new replies.