Maintenance mode
Show visitors a maintenance page while you work on a site, then turn it off again.
Before you start
- You can open the site in Managed Websites. Anyone who can open a site can turn its maintenance mode on and off.
- Each environment has its own switch: choose Production or Staging in the site header first.
- The switch is greyed out while the site is being created, while a backup is being restored and while another change is in progress.
Turn maintenance on
Turn on the switch
Go to Managed Websites, choose the site, then turn on the Maintenance switch at the top right of the site header. It reads Off.
Confirm
The dialog names the page visitors will see, with a Preview, and says who still sees the site. Choose Turn on maintenance.
The switch reads On straight away, and a banner in the site header says since when visitors have seen the maintenance page. Search engines get a 503 with Retry-After, so a short break does not affect rankings.
To change the page visitors see, see Error pages. To choose which addresses still see the site, see Firewall.
Turn maintenance off
Turn off the switch
Turn off the Maintenance switch, or choose Turn maintenance off in the banner. There is no dialog.
Visitors see the site again straight away.
Automate this
Switches the site's maintenance mode on or off and checks the site afterwards.
curl -X POST https://manage.corefinity.com/api/corestack/sites/1042/maintenance \
-H "Authorization: Bearer $COREFINITY_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"enabled": true
}'writeUpdate maintenance mode Your assistant calls corestack_maintenance_mode_set.
{
"name": "corestack_maintenance_mode_set",
"arguments": {
"site_id": 4211,
"enabled": true
}
}writecorestack_