WEB HOSTING SUPPORT NETWORK
     
 

Creating and using WordPress staging sites

You can use the WordPress section of the hosting Control Panel to create staging sites of your WordPress installations, make and preview your changes on them, and finally, publish those changes to the main site.

Creating a staging site

  1. Open the Manage tab of the hosting Control Panel's WordPress section.

  2. Find the WordPress site in the list, and click on the Edit (Edit) button for it. This will take you to the management page for the WordPress installation.

  3. Select the Site URL of the staging site using the controls under the Site URL section. A preview of the URL is shown below the controls. The controls are as follows:

    Use HTTPS: Set the site to use HTTPS instead of HTTP. This is only possible if there is a valid SSL certificate installed for the host.
    Use WWW: Add www. prefix for the address.
    Choose subdomain: Choose the subdomain from the list of the subdomains created on the account.
    Choose domain: Choose the domain from the list of the parked and main domains on the account.
    Choose directory: Choose a directory in the selected subdomain. Leave empty for the root of the domain/subdomain.

    Please note that you need to choose a location that is different from the current one. Our recommendation is to use a different subdomain. Here, we are using a subdomain named "staging" as an example.

    Create a staging site

  4. Click on the Create staging button.

This will create a separate staging site at the chosen location by copying the files there. It will also use separate MySQL database and user, so you can edit the new installation without affecting the original site in any way. The staging site will be automatically added in the Manage tab of the WordPress section.

Publishing the staging site to the main one

  1. Open the Manage tab of the WordPress section in the hosting Control Panel.

  2. Find the main WordPress site in the list, and click on the Edit (Edit) button for it. This will take you to the management page for the WordPress installation.

  3. Find the staging site in the Staging section of the page, and click on the Set as live button.

    Set as live

  4. A prompt will appear asking you if you would like to overwrite the live WordPress site with the staging one (this includes the files and the database) or try to merge them. Choose the desired approach, and wait for the operation to finish.

    Push staging to live site prompt

    Note: Full backups will be created automatically of both websites before the operation, which you can use in case a problem with either of the sites occurs.