{"id":8021,"date":"2026-05-08T13:38:08","date_gmt":"2026-05-08T11:38:08","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=8021"},"modified":"2026-06-08T09:58:13","modified_gmt":"2026-06-08T07:58:13","slug":"cum-sa-activati-modul-de-intretinere-in-wordpress","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-activate-maintenance-mode-in-wordpress\/","title":{"rendered":"Cum s\u0103 activa\u021bi modul de \u00eentre\u021binere \u00een WordPress"},"content":{"rendered":"<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">Activating maintenance mode in WordPress is a critical step during site migrations to <strong>mybox<\/strong>, theme redesigns, or major plugin updates. It ensures that visitors see a professional notice instead of a broken site, and it prevents search engines from indexing temporary errors.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-activate-maintenance-mode-in-wordpress\/#Why_Use_Maintenance_Mode\" >Why Use Maintenance Mode?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-activate-maintenance-mode-in-wordpress\/#Method_1_Using_a_Plugin_Recommended_for_Customization\" >Method 1: Using a Plugin (Recommended for Customization)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-activate-maintenance-mode-in-wordpress\/#Method_2_Built-in_WordPress_%E2%80%9CUpdate%E2%80%9D_Mode\" >Method 2: Built-in WordPress &#8220;Update&#8221; Mode<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-activate-maintenance-mode-in-wordpress\/#Method_3_Using_the_functionsphp_File_No_Plugin_Needed\" >Method 3: Using the functions.php File (No Plugin Needed)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-activate-maintenance-mode-in-wordpress\/#Troubleshooting_%E2%80%9CStuck_in_Maintenance_Mode%E2%80%9D\" >Troubleshooting: &#8220;Stuck in Maintenance Mode&#8221;<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-activate-maintenance-mode-in-wordpress\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_Use_Maintenance_Mode\"><\/span>Why Use Maintenance Mode?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Preventing Data Loss:<\/strong> During a migration to <strong>mybox<\/strong>, maintenance mode prevents users from leaving comments or making purchases that might not be synced to the new server.<\/li>\n\n\n\n<li><strong>SEO Protection:<\/strong> Correct maintenance tools send a <strong>503 Service Unavailable<\/strong> header, telling Google that the downtime is temporary and your rankings should be preserved.<\/li>\n\n\n\n<li><strong>Professionalism:<\/strong> It allows you to test changes on your <strong>mybox-hosted<\/strong> site while showing the public a branded &#8220;Coming Soon&#8221; or &#8220;Under Construction&#8221; page.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_1_Using_a_Plugin_Recommended_for_Customization\"><\/span>Method 1: Using a Plugin (Recommended for Customization)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For most users, plugins offer the easiest way to create a high-quality maintenance page without touching code.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>Install a Plugin:<\/strong> Go to <strong>Plugins &gt; Add New<\/strong> in your WordPress dashboard. Search for <strong>&#8220;Lightstart&#8221;<\/strong> (formerly WP Maintenance Mode) or <strong>&#8220;SeedProd&#8221;<\/strong>.<\/li>\n\n\n\n<li><strong>Activate &amp; Configure:<\/strong> Once activated, navigate to the plugin settings. Most allow you to:\n<ul class=\"wp-block-list\">\n<li>Set a custom headline and description.<\/li>\n\n\n\n<li>Add a countdown timer for when you&#8217;ll be back online.<\/li>\n\n\n\n<li>Include social media links or a newsletter signup form.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Whitelisting Admins:<\/strong> Ensure the settings allow &#8220;Logged-in Administrators&#8221; to bypass the maintenance screen so you can still see the live site.<\/li>\n\n\n\n<li><strong>Go Live:<\/strong> Toggle the status to <strong>&#8220;Activated&#8221;<\/strong> and save.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_2_Built-in_WordPress_%E2%80%9CUpdate%E2%80%9D_Mode\"><\/span>Method 2: Built-in WordPress &#8220;Update&#8221; Mode<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<\/div>\n\n<div id=\"mybox-2835298723\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Acces timpuriu<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Mai ave\u021bi nevoie de ajutor?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contacta\u021bi echipa noastr\u0103 de servicii pentru clien\u021bi.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Trimite mesaj<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">WordPress automatically creates a maintenance gate during core or plugin updates. You can trigger this manually using a simple file.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>Access Your Files:<\/strong> Connect to your FTP account via an FTP client such as FileZilla.<\/li>\n\n\n\n<li><strong>Create the File:<\/strong> In your site\u2019s root directory (usually <code>public_html<\/code>), create a new empty file named exactly <code>.maintenance<\/code>.<\/li>\n\n\n\n<li><strong>Add the Code:<\/strong> Open the file and paste this small snippet: <code>&lt;?php $upgrading = time(); ?&gt;<\/code><\/li>\n\n\n\n<li><strong>Result:<\/strong> Your site will now display the default message: <em>&#8220;Briefly unavailable for scheduled maintenance. Check back in a minute.&#8221;<\/em><\/li>\n\n\n\n<li><strong>To Disable:<\/strong> Simply delete the <code>.maintenance<\/code> file once your work is complete.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_3_Using_the_functionsphp_File_No_Plugin_Needed\"><\/span>Method 3: Using the functions.php File (No Plugin Needed)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you prefer not to install extra plugins and want a lightweight solution, you can add a snippet to your theme.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Navigate to <strong>Appearance &gt; Theme File Editor<\/strong>.<\/li>\n\n\n\n<li>Select the <strong>functions.php<\/strong> file on the right side.<\/li>\n\n\n\n<li>Paste the following code at the very bottom:<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">PHP<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function wp_maintenance_mode() {\n    if (!current_user_can('edit_themes') || !is_user_logged_in()) {\n        wp_die('&lt;h1&gt;Under Maintenance&lt;\/h1&gt;&lt;br \/&gt;We are making things even better. We will be back shortly!');\n    }\n}\nadd_action('get_header', 'wp_maintenance_mode');\n<\/code><\/pre>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li><strong>Save the file.<\/strong> This will block everyone except logged-in admins from viewing the site.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Troubleshooting_%E2%80%9CStuck_in_Maintenance_Mode%E2%80%9D\"><\/span>Troubleshooting: &#8220;Stuck in Maintenance Mode&#8221;<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Occasionally, after an update, WordPress might fail to delete the temporary <code>.maintenance<\/code> file, leaving your site stuck.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>The Fix:<\/strong> Log in to your <strong>FTP account<\/strong>, find the <code>.maintenance<\/code> file in the root folder, and <strong>delete it manually<\/strong>. Your site will return to normal immediately.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Whether you choose a feature-rich plugin like SeedProd or a quick manual file edit, maintenance mode is a &#8220;safety net&#8221; for your digital presence. When moving to <strong>mybox<\/strong>, using this mode ensures that your transition is seamless and your SEO remains intact. Once you&#8217;ve verified your changes, remember to clear your site and server cache in the <strong>mybox panel<\/strong> to ensure the maintenance screen disappears for all visitors.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[58,60],"manual_kb_tag":[8729,8730,8731,190,404,426,3023,3029,3769,3771,5507,8727,8728],"class_list":["post-8021","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-web-applications-cms","manualknowledgebasecat-wordpress-plugins","manual_kb_tag-host-migration","manual_kb_tag-theme-redesign","manual_kb_tag-maintenance-plugin","manual_kb_tag-wordpress","manual_kb_tag-site-migration","manual_kb_tag-plugin-updates","manual_kb_tag-maintenance-mode","manual_kb_tag-coming-soon-page","manual_kb_tag-maintenance-file","manual_kb_tag-wordpress-maintenance","manual_kb_tag-maintenance-page","manual_kb_tag-activate-maintenance","manual_kb_tag-under-construction"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/8021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":2,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/8021\/revisions"}],"predecessor-version":[{"id":8022,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/8021\/revisions\/8022"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/media?parent=8021"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manualknowledgebasecat?post=8021"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb_tag?post=8021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}