Home • Blog • Article

WordPress Maintenance Mode: How to Enable, Disable & Fix It

By Fathima Nourin TM • •

WordPress Maintenance Mode: How to Enable, Disable & Fix It

Have you ever visited a WordPress website and stumbled upon a plain, unstyled message reading, “Briefly unavailable for scheduled maintenance. Check back in a minute”? You have just witnessed WordPress Maintenance Mode in action.

While this built-in feature is a lifesaver for site administrators pushing updates, getting stuck in maintenance mode can be a stressful experience for website owners. Whether you are performing routine updates or troubleshooting an unexpected loop, understanding how to manage maintenance mode is crucial for keeping your digital presence running smoothly.

In this guide, we will break down what WordPress maintenance mode is, how to enable and disable it properly, and how to fix it if your site becomes trapped.

🚨 Facing an active site error or malware warning?

Chat with an engineer on WhatsApp within 15 minutes.

💬 Chat on WhatsApp

What is WordPress Maintenance Mode?

When you update your WordPress core, themes, or plugins, WordPress automatically enters a temporary maintenance state. Behind the scenes, it creates a file named .maintenance in your site’s root directory. During this brief window, visitors see a notification that the site is undergoing maintenance, while administrators retain backend access.

Normally, this process lasts only a few seconds. However, server timeouts, memory limits, or conflicting updates can sometimes cause your site to get permanently stuck in this mode.


How to Enable Maintenance Mode Manually

While WordPress enables this mode automatically during updates, you might want to trigger it manually when performing a major redesign or migrating your site. Here are the two best ways to do it:

Method 1: Using a Plugin (Recommended)

The safest and most professional way to put your site into maintenance mode is by using a dedicated plugin. Tools like SeedProd or WP Maintenance Mode allow you to:

  • Design custom, branded “Coming Soon” or “Maintenance” pages.
  • Collect email signups while your site is offline.
  • Provide countdown timers for your visitors.
  • Grant bypass access to specific IP addresses or team members.

Method 2: Using Code (functions.php)

If you prefer not to install additional plugins, you can add a custom function to your active theme’s functions.php file. However, we always recommend using a child theme or a site-specific plugin to prevent your changes from being overwritten during updates.

function site_suraksha_maintenance_mode() {
    if ( !current_user_can( 'edit_themes' ) || !is_user_logged_in() ) {
        wp_die( '<h1>Site Under Maintenance</h1><p>We are currently performing scheduled updates. Please check back soon.</p>' );
    }
}
add_action( 'get_header', 'site_suraksha_maintenance_mode' );

How to Disable Maintenance Mode Normally

In most cases, WordPress automatically removes the maintenance mode screen once your updates finish. If it doesn’t clear on its own after a few minutes, you can easily resolve it manually.

  1. Access your website via an FTP client (like FileZilla) or your hosting provider’s File Manager (found in cPanel or Plesk).
  2. Navigate to your website’s root directory (usually named public_html).
  3. Look for a file named .maintenance. (Note: Because it starts with a dot, it may be hidden. Ensure your FTP/File Manager settings show hidden files).
  4. Simply delete the .maintenance file.
  5. Clear your browser cache and refresh your website. Your site should be back online!

Troubleshooting: Stuck in a Maintenance Mode Loop?

If you deleted the .maintenance file, but your site is still displaying the error message, try these advanced troubleshooting steps:

1. Check for Failed Plugin or Theme Updates

Sometimes, a script times out during an update. Go to your WordPress dashboard (if accessible via yoursite.com/wp-admin) and complete any pending updates. If the dashboard is locked, use your file manager to temporarily rename your plugins folder to plugins_old to deactivate all plugins, then switch it back once you regain access.

2. Clear Your Caching Layers

Server-side caching or CDN services (like Cloudflare) might still be serving the cached version of the maintenance page. Purge your server cache, CDN cache, and browser cache to ensure visitors see the live site.

3. Update Your WordPress Core Files

If an automatic update was interrupted, core files may be corrupted. You can manually reinstall WordPress via FTP by downloading a fresh copy of WordPress, extracting the files, and uploading everything except the wp-content folder and wp-config-sample.php.


Keep Your Site Secure and Updated with SiteSuraksha

Managing updates, avoiding downtime, and handling unexpected WordPress errors takes time and technical expertise. If you want peace of mind knowing your website is secure, backed up, and continuously monitored by experts, you don’t have to do it alone.

Let SiteSuraksha handle the heavy lifting. Explore our comprehensive WordPress security and maintenance plans today to keep your digital assets running flawlessly.

Follow SiteSuraksha on Google
Add us to your preferred sources for verified WordPress & hosting guides.
FREE 30-SECOND DIAGNOSTIC

Is Your Website Fast & Secure?

Run an instant scan for security vulnerabilities, bloated plugins, and TTFB latency.

🔍 Test Your Site Now →
Map Your Issue to Guaranteed IT Care
Security & Malware
Hacks, 0-day exploits & backup failures
Pro Care (₹5,420/mo) →
Speed & Cloud Bills
Slow checkout, high TTFB & cloud waste
Pro Care (₹5,420/mo) →
ERP & Automation
GST pipelines, RPA & AI support agents
Enterprise (₹14,999/mo) →
EXPERT WORDPRESS CARE

Need Help Securing or Speeding Up Your Site?

Get 24/7 proactive security WAF, daily cloud backups, and sub-second speed optimization from ₹3,470/mo.

💬 Chat on WhatsApp Explore Plans
← Back to All Articles