{"id":3134,"date":"2022-02-23T14:01:16","date_gmt":"2022-02-23T14:01:16","guid":{"rendered":"http:\/\/wpx.net\/kb\/?post_type=ht_kb&#038;p=3134"},"modified":"2025-07-21T08:43:08","modified_gmt":"2025-07-21T08:43:08","slug":"can-i-replace-the-live-site-with-the-staging","status":"publish","type":"ht_kb","link":"https:\/\/wpx.net\/kb\/can-i-replace-the-live-site-with-the-staging\/","title":{"rendered":"How can I replace the Live site with the Staging?"},"content":{"rendered":"\n<p>Yes, you can fully replace your <em>live site<\/em> with the content from your staging site.<\/p>\n\n\n\n<p>This is typically done when the staging version has been built from <em>scratch, with different themes, plugins, or layouts<\/em>, and you\u2019re ready to push those changes live.<\/p>\n\n\n\n<p>Before diving into the process, make sure you&#8217;ve reviewed the following steps to ensure a smooth transition. But if you&#8217;re <em>unsure<\/em>, please don&#8217;t hesitate to <strong>reach out for assistance from our support team<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Things to Consider Before Proceeding<\/h2>\n\n\n\n<p>Before pushing your staging site live using this method, there are a few important precautions to keep in mind to ensure a smooth and safe process.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. <strong>Back Up Your Live Site<\/strong><\/h3>\n\n\n\n<p>Always create a backup of your live site before making major changes. You can use a backup plugin or, even better, the built-in <strong>Backup Manager<\/strong> in your WPX Control Panel to create a <strong><a href=\"https:\/\/wpx.net\/kb\/how-can-i-backup-my-site-personal-backups\/\">Personal Backup<\/a><\/strong>. <\/p>\n\n\n\n<p>You won&#8217;t be able to create a backup during the &#8220;merge&#8221; step because the files of the live website will already be deleted. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong>Expect Temporary Downtime<\/strong><\/h3>\n\n\n\n<p>Replacing your staging site with the live site will delete all content in the live website. The process involves deleting the existing site files and database before restoring the staging version. As a result, <strong>temporary downtime is expected<\/strong> during the transition.<\/p>\n\n\n\n<p>Make sure you&#8217;re comfortable with how the WPX Control Panel works before initiating this step. If needed, refer to the full hosting panel overview for guidance.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. <strong>Keep Tools Ready<\/strong><\/h3>\n\n\n\n<p>To minimize downtime and respond quickly if needed:<\/p>\n\n\n\n<p>Prepare a simple <a href=\"https:\/\/wpx.net\/kb\/how-can-i-set-up-coming-soon-maintenance-page\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>HTML maintenance page<\/strong> <\/a>to upload temporarily. This reassures visitors and avoids confusion from seeing broken pages or error messages.<\/p>\n\n\n\n<p>Keep <strong><a href=\"https:\/\/wpx.net\/kb\/how-can-i-access-my-phpmyadmin\/\" target=\"_blank\" rel=\"noreferrer noopener\">phpMyAdmin<\/a><\/strong> and the <strong><a href=\"https:\/\/wpx.net\/kb\/how-can-i-access-my-file-manager\/\" target=\"_blank\" rel=\"noreferrer noopener\">File Manager<\/a><\/strong> tabs open in your browser before starting the process.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. <strong>Understand What the Merge Does<\/strong><\/h3>\n\n\n\n<p>This method does not use the actual merge option incorporated within the Control Panel. This is a full <strong>replacement<\/strong> of your live site with the staging version. Any recent content, user activity, or changes made on the live site that are not present in the staging site <strong>will be lost<\/strong>.<\/p>\n\n\n\n<p>If there\u2019s data on the live site that needs to be preserved (e.g., recent blog posts, WooCommerce orders, user comments), make sure to <strong>export<\/strong> that data before proceeding. You can then import it back after the staging site has been pushed live.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-1-login-to-your-wpx-account\">Step 1. Log in to your WPX account<\/h2>\n\n\n\n<p>Begin by logging into your WPX account. You can do this by visiting the <strong><a href=\"https:\/\/wpx.net\/clientarea\/\" target=\"_blank\" rel=\"noreferrer noopener\">WPX login page<\/a>.\u200b<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-2-navigate-to-your-hosting-plan\">Step 2. Go to Control Panel<\/h2>\n\n\n\n<p>Once logged in:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Locate your hosting plan in the WPX client area.<\/li>\n\n\n\n<li>Click the <strong>Control Panel<\/strong> button next to the plan you wish to manage.<\/li>\n<\/ol>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a0362fa01e96&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a0362fa01e96\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1919\" height=\"796\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/03\/image-10.png\" alt=\"\" class=\"wp-image-12899\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/03\/image-10.png 1919w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/03\/image-10-300x124.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/03\/image-10-1024x425.png 1024w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/03\/image-10-768x319.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/03\/image-10-50x21.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/03\/image-10-1536x637.png 1536w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/03\/image-10-60x25.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/03\/image-10-100x41.png 100w\" sizes=\"auto, (max-width: 1919px) 100vw, 1919px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">If you have more than five hosting plans of the same type (WordPress, Agency or WooCommerce), not all may appear on the homepage. Use the <strong>WordPress Hosting<\/strong>, <strong>Agency Hosting<\/strong> or <strong>WooCommerce Hosting<\/strong> tab in the left-hand menu to find your service.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3. Prepare <strong>phpMyAdmin<\/strong>  and File Manager<\/h2>\n\n\n\n<p>To minimize downtime, let&#8217;s open <strong>phpMyAdmin<\/strong> and the <strong>File Manager <\/strong>in different tabs. <\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">We&#8217;ll use <strong>phpMyAdmin <\/strong>to delete the database content of the live site using the drop option. <\/p>\n\n\n\n<p>To open the <strong>phpMyAdmin<\/strong>:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Select <strong>Databases <\/strong>to preview all databases in this hosting plan<\/li>\n\n\n\n<li>Check the database name of your live website to know which content should be deleted later. In our case, that is <em>example_site. <\/em><\/li>\n\n\n\n<li>Click on <strong>phpMyAdmin<\/strong><\/li>\n<\/ol>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a0362fa03435&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a0362fa03435\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1912\" height=\"794\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-151.png\" alt=\"\" class=\"wp-image-12954\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-151.png 1912w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-151-300x125.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-151-1024x425.png 1024w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-151-768x319.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-151-50x21.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-151-1536x638.png 1536w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-151-60x25.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-151-100x42.png 100w\" sizes=\"auto, (max-width: 1912px) 100vw, 1912px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p>Okay, keep it open in a new tab and get back to the control panel to prepare the <strong>File Manager. <\/strong><\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">We will use the <strong>File Manager<\/strong> to delete all files except wp-config.php and the maintenance page, if you&#8217;ve set one. <\/p>\n\n\n\n<p>To open the <strong>File Manager: <\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <strong>FTP Users &amp; Files<\/strong><\/li>\n\n\n\n<li>Select <strong>File Manager <\/strong><\/li>\n<\/ol>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a0362fa03cc7&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a0362fa03cc7\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1910\" height=\"851\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-148.png\" alt=\"\" class=\"wp-image-12947\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-148.png 1910w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-148-300x134.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-148-1024x456.png 1024w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-148-768x342.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-148-50x22.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-148-1536x684.png 1536w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-148-60x27.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-148-100x45.png 100w\" sizes=\"auto, (max-width: 1910px) 100vw, 1910px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p>Before you proceed further, locate the live site files, which are stored in its public_html directory. <\/p>\n\n\n\n<p>In our example, our live site is the main site. The files of the main website are located in<em> public_html. <\/em><\/p>\n\n\n\n<p>If the site you&#8217;re using is not your main one, you can find its files in the <em>domains\/yourlivesite.net\/public_htm<\/em>l directory. <\/p>\n\n\n\n<p>Now that you have everything prepared, let&#8217;s start by dropping the database of the live site using <strong>phpMyAdmin<\/strong>. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4. Drop the Database of the live site <\/h2>\n\n\n\n<p>Open the tab with your <strong>phpMyAdmin<\/strong> and follow the steps to drop the database: <\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Select the <strong>Live site database<\/strong>, in our case<em> example_site. <\/em><\/li>\n\n\n\n<li>Scroll down in the right panel and <strong>select all tables<\/strong> by checking the <strong>Check all <\/strong>box.<\/li>\n\n\n\n<li>Right-click with the mouse to open the menu and choose <strong>Drop<\/strong>.<\/li>\n<\/ol>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a0362fa0428a&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a0362fa0428a\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1914\" height=\"838\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-149.png\" alt=\"\" class=\"wp-image-12952\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-149.png 1914w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-149-300x131.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-149-1024x448.png 1024w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-149-768x336.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-149-50x22.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-149-1536x673.png 1536w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-149-60x26.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-149-100x44.png 100w\" sizes=\"auto, (max-width: 1914px) 100vw, 1914px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p>In the confirmation prompt, click <strong>Yes<\/strong> to delete the tables.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a0362fa046f0&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a0362fa046f0\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1615\" height=\"392\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/confirm_drop-1.png\" alt=\"\" class=\"wp-image-12133\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/confirm_drop-1.png 1615w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/confirm_drop-1-300x73.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/confirm_drop-1-1024x249.png 1024w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/confirm_drop-1-768x186.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/confirm_drop-1-50x12.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/confirm_drop-1-1536x373.png 1536w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/confirm_drop-1-60x15.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/confirm_drop-1-100x24.png 100w\" sizes=\"auto, (max-width: 1615px) 100vw, 1615px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5. Delete all Files except wp-config<\/h2>\n\n\n\n<p>Once the database is dropped, it&#8217;s time to remove the Live site files. <\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\"><strong>When deleting files, ensure that <code>wp-config.php<\/code> is not selected for deletion.<\/strong><br>This file is essential to the merge process, as it contains the database connection details required to successfully replace your live site with the staging version. <br><br>If <code>wp-config.php<\/code> is missing from the pubcli_html directory during the merge; the operation will fail.<br><br>Double-check that this file remains intact to avoid errors and ensure a smooth deployment.<\/p>\n\n\n\n<p>Go to the File Manager tab that you&#8217;ve already prepared. And open the live site&#8217;s public_html directory. <\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Make sure you are in the correct website directory.<\/li>\n\n\n\n<li>Select all files <strong>except<\/strong> the <strong><code>wp-config.php<\/code><\/strong> file (and if you set up an HTML maintenance page, exclude it too). <\/li>\n\n\n\n<li>Click on the <strong>Bin<\/strong> button to delete the selected files.<\/li>\n\n\n\n<li>A pop-up window will appear to confirm the changes.<\/li>\n<\/ol>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a0362fa050b1&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a0362fa050b1\" class=\"wp-block-image aligncenter size-full is-resized wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"802\" height=\"759\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/wp_config_php-1.png\" alt=\"\" class=\"wp-image-12104\" style=\"width:455px;height:auto\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/wp_config_php-1.png 802w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/wp_config_php-1-300x284.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/wp_config_php-1-768x727.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/wp_config_php-1-50x47.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/wp_config_php-1-60x57.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/wp_config_php-1-100x95.png 100w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p><strong>Review the list of files carefully before confirming deletion.<\/strong> Make sure that <code>wp-config.php<\/code> is <strong>not<\/strong> included in the deletion list, as this file contains critical configuration settings for your WordPress site.<\/p>\n\n\n\n<p>If you&#8217;re using an <strong>HTML maintenance page<\/strong>, be sure to exclude it as well. Deleting the maintenance page will result in a generic WPX error screen being displayed to your visitors during the transition period.<\/p>\n\n\n\n<p>Taking a moment to double-check this step can help prevent unnecessary downtime or confusion.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 6. Replace the Live Site with the Staging Site<\/h2>\n\n\n\n<p>These are the final and easiest steps: we&#8217;ll use the merge button to complete the replacement. <\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Navigate to the&nbsp;<strong>Staging<\/strong>&nbsp;section<strong>&nbsp;<\/strong>in your WPX Control Panel.<\/li>\n\n\n\n<li>Locate<strong>&nbsp;<\/strong>the Staging site you want to merge.<\/li>\n\n\n\n<li>Click the&nbsp;<strong>Merge<\/strong>&nbsp;button next to it.<\/li>\n<\/ol>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a0362fa05702&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a0362fa05702\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1910\" height=\"861\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-145.png\" alt=\"\" class=\"wp-image-12936\" style=\"object-fit:cover\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-145.png 1910w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-145-300x135.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-145-1024x462.png 1024w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-145-768x346.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-145-50x23.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-145-1536x692.png 1536w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-145-60x27.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/image-145-100x45.png 100w\" sizes=\"auto, (max-width: 1910px) 100vw, 1910px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p>You will not need a backup of your live site because we&#8217;ve already deleted its content. You can uncheck that option and continue with merging. <\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a0362fa05b34&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a0362fa05b34\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1577\" height=\"600\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/MERGE-TO-LIVE-2.png\" alt=\"\" class=\"wp-image-12112\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/MERGE-TO-LIVE-2.png 1577w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/MERGE-TO-LIVE-2-300x114.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/MERGE-TO-LIVE-2-1024x390.png 1024w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/MERGE-TO-LIVE-2-768x292.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/MERGE-TO-LIVE-2-50x19.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/MERGE-TO-LIVE-2-1536x584.png 1536w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/MERGE-TO-LIVE-2-60x23.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/02\/MERGE-TO-LIVE-2-100x38.png 100w\" sizes=\"auto, (max-width: 1577px) 100vw, 1577px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p>Once the merge process is complete, a pop-up notification will appear in the upper-right corner of your panel.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a0362fa05f8d&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a0362fa05f8d\" class=\"wp-block-image aligncenter size-full is-resized wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"474\" height=\"267\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/07\/MERGE-DONE-1-edited-1.png\" alt=\"\" class=\"wp-image-12963\" style=\"width:474px;height:auto\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/07\/MERGE-DONE-1-edited-1.png 474w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/07\/MERGE-DONE-1-edited-1-300x169.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/07\/MERGE-DONE-1-edited-1-50x28.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/07\/MERGE-DONE-1-edited-1-60x34.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/07\/MERGE-DONE-1-edited-1-100x56.png 100w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon\">That&#8217;s it! To see the changes, you&nbsp;<strong><a href=\"https:\/\/wpx.net\/kb\/how-can-i-clear-my-browser-cache\/\" target=\"_blank\" rel=\"noreferrer noopener\">need to clear your browser cache<\/a><\/strong>&nbsp;or view the site in a different browser or Incognito mode. Keep in mind that<strong>&nbsp;your internet connection may also cache the site<\/strong>, so try checking it from another network (e.g., mobile data) or add&nbsp;<code>\/?nocache<\/code>&nbsp;to the URL.<\/p>\n\n\n\n<p>Have more questions? Contact the WPX Support Team through the live chat widget in the bottom-right corner, and they\u2019ll assist you promptly, typically within 30 seconds.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yes, you can fully replace your live site with the content from your staging site. This is typically done when the staging version has been built from scratch, with different themes, plugins, or layouts, and you\u2019re ready to push those changes live. Before diving into the process, make sure you&#8217;ve&#8230;<\/p>\n","protected":false},"author":16,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_editorskit_title_hidden":false,"_editorskit_reading_time":4,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","inline_featured_image":false,"footnotes":""},"ht-kb-category":[24],"ht-kb-tag":[],"class_list":["post-3134","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-staging-area"],"_links":{"self":[{"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb\/3134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/comments?post=3134"}],"version-history":[{"count":51,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb\/3134\/revisions"}],"predecessor-version":[{"id":13802,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb\/3134\/revisions\/13802"}],"wp:attachment":[{"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/media?parent=3134"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=3134"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=3134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}