Turn WordPress maintenance mode on and off
put wordpress in maintenance mode | wordpress stuck in maintenance mode | enable maintenance page wordpress | wp-cli | maintenance | updateCaution: This command changes the system. Understand what it does before you run it.
wp maintenance-mode activate --path=/var/www/vhosts/example.com/httpdocsCreates the .maintenance file so visitors see a maintenance message with HTTP status 503. Turn it off with wp maintenance-mode deactivate, and wp maintenance-mode status shows the current state. A short 503 is harmless for search engines, but it should not last for days.
Note: If a site is stuck in maintenance mode after an aborted update, deactivate or deleting .maintenance in the web root is enough.
Also searched as
- put wordpress in maintenance mode
- wordpress stuck in maintenance mode
- enable maintenance page wordpress