Maintenance plugins are often used to lock down your website until it is ready for public viewing.
On Strattic, you may not need it as we have the following protections already in place.
-
When your WordPress container is online, it is protected by HTTP Authentication. Without login credentials, the public and robots cannot view your website.
-
Search engines are unable to access the Preview Environment because of the noindex tag, but users with the web address can access it.
-
Your Live Environment will be visible to everyone and search engines (unless you block them). If you would like to restrict access, HTTP authentication can be added to the Live Environment by contacting support via the Live Chat.
If you still would like to use a maintenance mode plugin, Strattic supports Under Construction By WebFactory Ltd
To set up;
-
First Install & activate the plugin
-
Next, add the following code to your functions.php file.
add_filter( 'parse_request', 'strattic_parse_request', 10, 1 );
function strattic_parse_request() {
if (strpos( $_SERVER['REQUEST_URI'], 'strattic-api-request')) {
remove_action('wp', array('UCP', 'display_construction_page'), 0);
}
}This will allow you to publish your website to static even when the plugin is enabled.
-
After you have updated functions.php, you should perform a Full Publish to your chosen environment.