[Domain Mapping] Staging site for multisite

I want to create a staging clone of my network so I can test new plugins to the network, and sync changes, and/or update websites, and sync content.
How should this be set up correctly?

Thank you

  • James Morris

    Hello MyHQ

    Setting up a Multisite Staging Site really has less to do with Domain Mapping. In fact, on a staging site, you'll want to switch Domain Mapping either off or change it to honor the requested URL or original domain so you're not constantly redirected to your production site.

    Setting up your staging site can be done either by using our Managed Backup service and installer.php script. Just download the backup and script from your Hub and install it on your new staging domain. This is not really the intended purpose of Manged Backups, but many users have reported that it works. It's not guaranteed though. We're working on a plugin (Shipper) that is tailored to this type of task.

    Alternately, you could try All-in-One WP Migration. https://wordpress.org/plugins/all-in-one-wp-migration/ That plugin is designed for this type of task.

    The main thing to remember is to host your staging site on a completely different domain and not a subdomain. Also, you'll want to have the staging site's files in a directory that is outside the web root for your live Multisite to avoid .htaccess conflict.

    For example. A good setup would be like so...

    Staging:
    Domain: https://company-dev.com/
    Path: /home/company/dev

    Production:
    Domain: https://company.com/
    Path: /home/company/public_html

    You may also find the following tutorial quite helpful: https://www.inboundnow.com/the-ultimate-guide-to-cloning-a-wordpress-site-from-one-url-to-another/

    Let us know if you have any further questions. We'll be happy to help! :slight_smile:

    Best regards,

    James Morris

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.