Skip to content
Arrow keys to move, Enter to open, Esc to closeAll results
Hosting · Guides

How to Create a WordPress Staging Site

A staging site is a private copy of your website where you can test updates and changes safely. Here are three ways to set one up and a checklist for pushing changes live.

Written by
WPresident Editorial
Updated
November 2026
Topic
Hosting

A staging site is a private clone of your live website. You break things on it, test updates and design changes, and only move the result to production once it works. For any site that earns money or represents a business, it is the cheapest insurance you can buy.

What a staging site is for

  • Testing plugin, theme and WordPress core updates before they reach visitors.
  • Building a redesign or new feature without exposing half-finished work.
  • Reproducing a bug without risking the live site.
  • Trying a new plugin to see what it changes.

Option 1: one-click staging from your host

Many managed WordPress hosts include staging in their dashboard: you click a button, the host copies files and database to a protected subdomain, and a second button pushes changes back. This is the safest and fastest route because the host handles search-and-replace of URLs and keeps the copy private.

The WP Engine website
Managed hosts such as WP Engine include staging environments in the dashboard.

Option 2: a local development environment

If your host has no staging, run a copy of the site on your own computer. Local is a free app for running WordPress locally; it can also push and pull sites to some hosts.

The Local website
Local, an app for running WordPress sites on your own computer: localwp.com.

Option 3: a manual staging site

  1. Create a subdomain such as staging.example.com and a separate database.
  2. Copy the site files to the subdomain and import a copy of the database.
  3. Edit wp-config.php on staging with the new database details.
  4. Run a search-and-replace to change the live URL to the staging URL in the database. Use WP-CLI’s wp search-replace or a tool that handles serialized data correctly.
  5. Put the staging site behind HTTP authentication.

Protect the staging site

  • Block search engines. Set Settings, Reading, “Discourage search engines” and password-protect the site.
  • Stop outgoing email. A copy of a store can send real order emails to real customers. Disable mail or route it to a test inbox.
  • Use test payment keys. Never leave live payment gateway keys on staging.
  • Turn off scheduled tasks that talk to third parties, such as syncs to CRM or marketing tools.

Moving changes to the live site

  1. Take a full backup of the live site first.
  2. If you only changed code or design, copy those files or use the host’s push feature.
  3. If the site has changing data, such as orders, comments or form entries, do not overwrite the live database. Move only the changes you made.
  4. Clear caches and check the key pages: home, a post, search, contact form and, for stores, a test checkout.

Final thoughts

Staging is a habit more than a tool. Decide that nothing is updated on production before it has been tried on a copy, and make the copy easy enough to create that you actually do it.

Frequently asked questions

Can I use a staging site for a WooCommerce store?

Yes, but avoid pushing the staging database to live, because you would overwrite real orders. Move only code and settings, and use test payment keys on the copy.

Will a staging site hurt my SEO?

Not if it is blocked from search engines and protected by a password. An open copy of your site can be indexed as duplicate content, so always protect it.

W
Written byWPresident EditorialThe WPresident editorial team. We test products on real sites, score them with one public method and write up what holds up.

Keep reading

E-commerce

The Best WooCommerce Plugins in 2026

A WooCommerce toolbox sorted by job: subscriptions, card processing, checkout, product options, search and wishlists, with the real cost of each and a rule for a small stack.

Read more
WPresident EditorialNovember 2026

Get the Monthly Launch Report

One email a month: the best of last month's articles, new reviews and what changed in WordPress, without the noise.

No spam. Unsubscribe in one click.

Signed and sealed,
The WPresident

Press Esc to close. Use the arrow keys to move through results.