🇺🇸 Welcome from the USA! We have special plans for you.
View US Hosting Plans →

Activate maintenance mode in WordPress

📅 15/06/2026 ⏱ 5 min de lectura
PlatiniumHost

Escrito por

Luis Contreras · CEO & Fundador · +24 años en hosting

Activate Maintenance Mode in WordPress

Working on your WordPress website is an ongoing process that often requires updates, design changes, or troubleshooting. To ensure your visitors have a professional experience and to prevent them from seeing a broken or under-construction site, it's essential to activate maintenance mode. This article will guide you through the different methods to put your site in maintenance mode, displaying a friendly page while you work behind the scenes.

Why activate Maintenance Mode?

Maintenance mode is an essential tool for any WordPress administrator. Here are the key reasons to use it:

  • Professionalism: Prevents visitors from seeing your site in an unfinished or error-ridden state during updates.
  • User experience: Instead of encountering a non-functional site, users are informed that the site is temporarily offline and when it is expected to return.
  • Error prevention: When making significant changes, there's always a risk of introducing an error. Maintenance mode protects your users from encountering these issues.
  • SEO: A correctly configured maintenance page can send an HTTP 503 (Service Unavailable) status code to search engines, indicating that the interruption is temporary and will not affect your ranking.
Tip: Always activate maintenance mode before making any significant changes to your site, such as updating the WordPress core, themes, or plugins, or modifying code.

Methods to activate Maintenance Mode

There are mainly two ways to activate maintenance mode in WordPress: using a plugin (the most recommended and easiest method) or manually (for more experienced users).

Method 1: Using a Plugin (Recommended)

The simplest and most versatile way to activate maintenance mode is through a plugin. Plugins offer a wide range of customization options for your maintenance page, such as countdown timers, subscription forms, social media links, and much more.

Some of the most popular and effective plugins for maintenance mode include:

  • SeedProd (Coming Soon Page, Maintenance Mode & Landing Page Builder)
  • WP Maintenance Mode & Coming Soon
  • UnderConstructionPage

Steps to activate maintenance mode with a plugin:

  1. Install and activate the plugin:
    • From your WordPress admin panel, go to Plugins > Add New.
    • Search for the plugin name (e.g., 'SeedProd' or 'WP Maintenance Mode').
    • Click 'Install Now' and then 'Activate'.
  2. Configure the maintenance page:
    • Once activated, the plugin will add a new option to your WordPress menu (usually under 'Settings' or with its own menu item).
    • Access the plugin settings.
    • Here you can design your maintenance page: add a title, a custom message, your logo, background images, and even set up a countdown timer.
    • Make sure to configure the HTTP 503 status so that search engines know the interruption is temporary.
  3. Activate Maintenance Mode:
    • Within the plugin settings, you will find a switch or button to 'Activate' or 'Go Live' with maintenance mode.
    • Click to activate. Your site will now display the maintenance page to all visitors who are not logged in as an administrator.
  4. Deactivate Maintenance Mode:
    • When you have finished working on your site, simply return to the plugin settings and deactivate maintenance mode.
Tip: Hosting services like PlatiniumHost facilitate WordPress management, allowing you to install and manage plugins efficiently through their intuitive control panel.

Method 2: Manual Activation (For advanced users)

This method is useful if you experience a plugin conflict, cannot access the WordPress admin panel, or simply prefer more direct control. It involves creating a .maintenance file in the root of your WordPress installation.

Important: This method requires accessing your website's files. Make sure you have a recent backup before proceeding. A small error can render your site inaccessible.

Steps to activate maintenance mode manually:

  1. Access your site's files:
    • You can do this via the cPanel File Manager (available at PlatiniumHost) or using an FTP client (like FileZilla).
    • Navigate to the root folder of your WordPress installation (usually public_html or your domain's folder).
  2. Create the .maintenance file:
    • In the WordPress root folder, create a new file named .maintenance (be sure to include the dot at the beginning).
    • This file tells WordPress that it is in maintenance mode. Its existence will cause WordPress to display a default maintenance page.
    • For a more customized maintenance page, you can add simple code to this file that redirects to a custom HTML page.
  3. Create a custom maintenance page (optional but recommended):
    • Create a file named maintenance.php (or any other name) in the same root folder.
    • This file will contain the HTML and CSS for your maintenance page.
    • Here is a basic example of content for maintenance.php:
    <?php header('HTTP/1.1 503 Service Temporarily Unavailable'); header('Retry-After: 3600'); // Retry after 1 hour (in seconds) ?> <!DOCTYPE html> <html lang='es'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Sitio en Mantenimiento - PlatiniumHost</title> <style> body { font-family: Arial, sans-serif; text-align: center; padding: 50px; background-color: #f4f4f4; color: #333; } h1 { color: #0056b3; } p { font-size: 1.1em; } .container { max-width: 600px; margin: 0 auto; background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); } </style> </head> <body> <div class='container'> <h1>¡Volveremos pronto!</h1> <p>Estamos realizando algunas mejoras en nuestro sitio web. Disculpe las molestias.</p> <p>Agradecemos su paciencia y esperamos verte de nuevo muy pronto.</p> <p><strong>PlatiniumHost</strong></p> </div> </body> </html>
  4. Configure wp-config.php to use the custom page:
    • Open the wp-config.php file (also in the WordPress root) with the cPanel File Manager's code editor.
    • Just before the line that says /* That's all, stop editing! Happy blogging. */, add the following line of code:
    define('WP_MAINTENANCE_MODE', true);

    This line, along with the existence of the .maintenance and maintenance.php files, will ensure your custom page is displayed.

  5. Deactivate Maintenance Mode Manually:
    • To deactivate maintenance mode, simply delete the .maintenance file from the root of your WordPress installation. You can also remove the line define('WP_MAINTENANCE_MODE', true); from wp-config.php if you added it.
Tip: The cPanel File Manager, offered by PlatiniumHost, is a powerful and easy-to-use tool for editing and managing your website files directly from your browser.

Important Considerations

  • HTTP 503 Status: Make sure your maintenance page sends an HTTP 503 (Service Unavailable) header. This tells search engines that the site is temporarily offline and should not be deindexed. Most plugins do this automatically.
  • Test your page: Once maintenance mode is active, open your site in a browser where you are not logged in as an administrator to verify that the page is displayed correctly.
  • Estimated time: If possible, include an estimated time for when the site will be back online. This helps manage your visitors' expectations.
  • Administrator access: When maintenance mode is active, administrators and editors (depending on the plugin's configuration) usually have access to the site's backend and frontend to be able to work.

Conclusion

Activating maintenance mode on your WordPress site is a fundamental practice to maintain professionalism and an excellent user experience while performing essential work. Whether you choose the convenience of a plugin or the granular control of the manual method via cPanel, PlatiniumHost provides you with the tools and robust environment to keep your WordPress site running smoothly.

💬 ¿En qué podemos ayudarte?

Selecciona un agente de soporte

¿Hablamos?