1. Home
  2. Blog
  3. How to Turn WordPress Maintenance Mode Off and On

How to Turn WordPress Maintenance Mode Off and On

To turn off WordPress maintenance mode, switch it off in the plugin’s settings if you used a plugin; if the site is stuck on the “Briefly unavailable for scheduled maintenance. Check back in a minute.” message, delete the .maintenance file in the root directory. In this article, we explain how to manage maintenance mode with a plugin, with code and from your hosting panel, and how the 503 code affects SEO.

By meomanWordPress since 2008

Why Use WordPress Maintenance Mode?

To turn off maintenance mode, disable it in the plugin’s settings if you turned it on with a plugin, or deactivate the plugin on the Plugins page. If the site is stuck on the “Briefly unavailable for scheduled maintenance. Check back in a minute.” message after an update, use FTP or a file manager to delete the .maintenance file in the root directory where WordPress is installed (the folder that contains wp-admin and wp-content). Maintenance mode itself shows visitors a “we’re working on it, back soon” message while an update or design work is in progress.

Turning on this mode matters not only for user experience but also for managing server resources. Keeping the site open to traffic during a heavy update can cause database queries to collide and bring the whole site down. Maintenance mode stabilizes the server load so the work can be completed safely.

From an SEO perspective, it’s vital that Google’s bots correctly interpret the time your site is under maintenance. Without maintenance mode, bots may flag your site as “broken” or “content removed.” A properly configured 503 HTTP status code tells bots the situation is temporary and prevents you from losing indexed pages.

  • Protecting your professional brand image and keeping users’ trust.
  • Preventing data corruption during database operations.
  • Keeping technical errors from dragging down your SEO performance.
MethodDifficultySEO friendlinessCustomizationRecommended use
Plugin useLowHighVery highVisually rich maintenance pages
Manual CodeMediumMediumLowQuick, temporary fixes
.htaccess EditingHighHighMediumServer-level restriction
Hosting panelLowHighLowOne-click activation
WP-CLI CommandsHighHighNoneDevelopers and technical teams

Plugins are the fastest way to create professional maintenance pages without technical knowledge. Popular tools come with drag-and-drop editors that help you build polished designs in minutes. Beyond a simple “under maintenance” notice, these plugins also offer social media buttons and contact tool integrations.

The plugin you choose shouldn’t affect your site’s overall speed and should be fully compatible with the WordPress core version. Lightweight plugins in particular leave nothing behind on your site once maintenance mode is turned off. The list below includes efficient tools chosen for their balance of performance and features.

After installing the plugin, you can adjust access permissions in its settings panel. For example, you can let only users with the Administrator role see the site while redirecting all other roles to the maintenance page. This makes it much easier to test your design in the live environment.

  1. SeedProd: One of the most popular drag-and-drop page builder and maintenance mode plugins.
  2. LightStart (WP Maintenance Mode): A completely free alternative with extensive customization options.
  3. Maintenance (WebFactory): A simple, free maintenance mode plugin you switch on and off from a single screen.
  4. Minimal Coming Soon: A lightweight plugin with minimal designs for anyone who wants simplicity.
  5. Under Construction: Stands out for automatically turning on and off on scheduled dates.

Source: WordPress.org Plugin Directory

How to Enable Maintenance Mode Manually with Code

If you’d rather avoid extra plugins, WordPress’s built-in functions are enough. A short snippet added to your theme’s functions.php file puts the entire site into maintenance mode instantly. This method is especially handy in emergencies or during simple CSS edits.

The most important thing with the manual method is making sure the code has no PHP syntax errors. A single misplaced bracket can cause the “White Screen of Death.” So before adding any code, always back up the file or make sure you have FTP access.

When you switch to maintenance mode with code, you can enrich the message shown to visitors with HTML tags. However, this method usually only offers a basic heading and text. If you want something visually impressive, using a plugin or creating a custom maintenance.php file is the more sensible choice.

  • Adding a hook that calls the wp_die() function to the functions.php file.
  • Creating a file named .maintenance in the root directory with PHP code in it.
  • Creating a wp-content/maintenance.php file to customize the maintenance page shown while .maintenance is active.

Managing Maintenance Mode with the .maintenance File via FTP

WordPress creates this file automatically during updates, but you can also control it manually. Because this is a server-level intervention, it is very effective.

  • Connect to your site’s root directory.
  • Create a file named .maintenance.
  • Add the code $upgrading = time(); to it and save.
Related serviceSupport & Consulting

Managing Maintenance Mode from Your Hosting Panel

Modern hosting providers have added WordPress management tools to their control panels (cPanel, Plesk, DirectAdmin). With tools like “WordPress Toolkit,” you can turn maintenance mode on or off with a single button, without even logging in to the site. This method is a lifesaver when a technical error has cut off access to the site.

Maintenance mode set from the panel is practical because you can turn it on and off even when you can’t get into the WordPress admin dashboard. The panel also lets you quickly edit the content of the maintenance page (title, description, logo).

If you use a staging site, it’s much safer to push changes from staging to live while your main site is in maintenance mode. Don’t forget to turn off maintenance mode in the panel once the changes are live.

  1. Open the “WordPress Toolkit” menu in cPanel or Plesk.
  2. Switch on the “Maintenance mode” toggle next to the website.
  3. Customize the template and text shown to visitors under “Settings.”

SEO Settings and the 503 Status Code in Maintenance Mode

The most critical technical detail of maintenance mode is the HTTP response code the server returns to search engines. A normally working page returns a 200 code, but a page in maintenance mode must return a 503 (Service Unavailable) code. This code tells Google’s bots: “I’m here, but I can’t serve you right now. Please come back later.”

If your site returns a 404 (Not Found) or 200 (OK) code while in maintenance mode, search engines may assume your content has changed or been deleted. If maintenance drags on, this can cause pages to drop out of the index or lose rankings. Plugins usually set this code automatically, but you need to watch for it with manual methods.

Adding a Retry-After header to your maintenance page also tells bots when to come back. For example, you can let them know the maintenance will take 2 hours. This transparency helps your crawl budget be used efficiently and minimizes indexing issues.

  • Make sure the HTTP 503 status code is configured correctly.
  • Don’t add “noindex” to the maintenance page: the 503 code already keeps it out of the index, and if the page accidentally returns 200, noindex could drop your site from the index.
  • Add text telling visitors roughly when the site will be back.

What to Keep in Mind When Designing a Maintenance Page

A maintenance page isn’t just a technical necessity; it’s also a marketing opportunity. Users care more than ever about visual appeal and clear information. Instead of black text on a dull white page, choose a design that carries your brand colors and reflects your corporate identity.

Always leave a contact channel on the page. A visitor may need to reach you for urgent support. This is where an email address, a live chat button or social media links come in. You can also add a newsletter signup form so users get an automatic notification when the site reopens.

Mobile responsiveness is essential for maintenance pages too. With most traffic now coming from mobile devices, a maintenance page that doesn’t display properly on phones undermines your professional image. Use lightweight images and readable fonts to deliver a smooth experience on every device.

  • Consistent use of your logo and brand colors.
  • A countdown timer that clearly shows when the site will reopen.
  • Strategically placed icons linking to your social media accounts.

Elements That Boost User Engagement

Even in maintenance mode, you can keep users on your site or send them to your other platforms.

  • Link to your most popular blog posts.
  • Offer a special discount code to encourage purchases at launch.
  • Use a short teaser video to talk about what’s new.

Leaving Maintenance Mode and Troubleshooting

Once the work is done, leaving maintenance mode cleanly is just as important as turning it on. Sometimes the site stays stuck in maintenance mode even after the plugin is turned off. This usually happens because the .maintenance file in the root directory wasn’t deleted automatically. In that case, deleting the file manually via FTP fixes the problem immediately.

After turning off maintenance mode, check every page of your site, especially forms and payment systems. If you use caching plugins, always clear the entire cache after leaving maintenance mode. Otherwise, some users may keep seeing the old maintenance page.

If your site gets stuck on the “Briefly unavailable for scheduled maintenance” error during an update, there’s no need to panic. It simply means WordPress couldn’t finish the update. Once you open the file manager and delete the file, the site will return to normal. You can then restart the update manually.

  1. If you use a plugin, set the mode to “Inactive” in its settings.
  2. Check the root directory to make sure the .maintenance file has been deleted.
  3. Clear the server and browser caches and confirm the live version of the site.

Source: MDN Web Docs - 503 Service Unavailable

Frequently Asked Questions

Does maintenance mode hurt SEO?

When it’s configured correctly with a 503 status code, it doesn’t hurt SEO; in fact, it protects your rankings. A wrong configuration or a long period of downtime, however, can lead to pages dropping out of the index.

How do I log in to my site while it’s in maintenance mode?

With plugin-based maintenance mode, you can log in at /wp-admin or wp-login.php; administrators are usually exempt. The .maintenance file, however, blocks everyone, administrators included.

How do I enable maintenance mode without a plugin?

You can do it without a plugin by adding a specific PHP snippet to your theme’s functions.php file or by creating a .maintenance file via FTP. This method uses fewer resources but offers limited customization.

My site is stuck in maintenance mode. What should I do?

Connect to your site’s root directory via FTP or a file manager and delete the file named .maintenance; that will fix the problem. This file is usually left behind when an update is interrupted.

How do I turn off WordPress maintenance mode?

If you turned it on with a plugin, switch it off in the plugin’s settings. If the site got stuck after an update, delete the .maintenance file in the root directory and clear the site and browser caches.

Summary
WordPress maintenance mode is an essential tool for protecting both your SEO performance and user trust during technical updates. Whether you use a plugin or manual code, using the 503 status code correctly lets you manage the transition professionally.