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.
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.