# What is a staging site? How to test changes safely before going live

> What a staging site is, why it prevents broken updates, how to create and use one and what to check when a host offers staging.

Source: https://comparehostingonline.com/guides/what-is-a-staging-site/

## Short answer

A staging site is a private copy of your live site where you can test updates and changes safely. When it works, you push the change to the live site. Many managed WordPress hosts include one-click staging.

Last verified Nov 28, 2026 · [How we test](https://comparehostingonline.com/methodology/)

At a glance

-   **What is a staging site?** A staging site is a copy of your website that lives somewhere private, usually on a separate address such as…
-   **Why use one?** Test plugin, theme and WordPress updates before they reach visitors.
-   **How do you create and use a staging site?** Use the host's staging tool, a plugin or a manual copy of files and database.

## What is a staging site?

A staging site is a copy of your website that lives somewhere private, usually on a separate address such as staging.example.com or a temporary host URL. It has the same files and database as the live site as of the moment it was copied. You can update plugins, change the theme, try a new PHP version or rebuild a page there, and nothing visitors see changes. When you are happy, you apply the same change to the live site.

The idea comes from software development, where code moves from development to staging to production. For a website it is the cheapest insurance against a broken update.

## Why use one?

-   Test plugin, theme and WordPress updates before they reach visitors.
-   Try a new PHP version; see [PHP versions on hosting](https://comparehostingonline.com/guides/php-versions-on-hosting/).
-   Build and review new pages or a redesign privately.
-   Rehearse a migration or a restore; see [website migration checklist](https://comparehostingonline.com/guides/website-migration-checklist/).
-   Check that a change does not break checkout or forms.
-   Give clients or colleagues a place to approve changes.

## How do you create and use a staging site?

1.  1
    
    **Make a copy**
    
    Use the host's staging tool, a plugin or a manual copy of files and database.
    
2.  2
    
    **Keep it private**
    
    Block search engines and protect it with a password.
    
3.  3
    
    **Make and test the change**
    
    Click through the pages, forms, logins and checkout.
    
4.  4
    
    **Apply it to live**
    
    Push the staging changes, or repeat the same steps on the live site after a backup.
    

## What should you look for when a host offers staging?

| Feature | Why it matters |
| --- | --- |
| One-click creation | Saves time and mistakes |
| Push to live | Applies changes without manual copying |
| Selective push | Move files only or database only, or specific tables |
| Search engines blocked | Avoids duplicate content in search results |
| Password protection | Keeps it private |
| Separate resources | Staging should not slow the live site |
| Restore from backup | A safety net if a push goes wrong |

## What are the risks with databases and orders?

The database is the tricky part. If your site takes orders, comments or registrations, the live database keeps changing while you test on staging. Pushing a staging database over the live one would erase everything that arrived in the meantime. For shops and membership sites, push only files and specific settings, or exclude the tables that hold orders and users, or repeat the changes manually on the live site. Always take a backup before applying a change; see [website backups](https://comparehostingonline.com/guides/website-backups-guide/).

## What about the SEO and security of staging?

-   Block indexing with a noindex rule and a password, so the staging copy does not compete with the live site.
-   Use a different set of API keys for payments and mail so test orders and emails do not reach real customers.
-   Keep staging updated with security patches too, since it is another site that could be attacked.
-   Delete old staging sites you no longer need.
-   Check that robots.txt and canonical tags are correct after pushing to live.

## Do you need a staging site?

If the site earns money, takes orders or would cost you if it broke, yes. For a small personal site that changes rarely, a backup and care may be enough. Managed WordPress hosting usually includes staging; shared hosting often does not, but plugins and control-panel tools can create one. See [shared vs managed WordPress hosting](https://comparehostingonline.com/guides/shared-vs-managed-wordpress-hosting/) for the difference, and [hosting for WordPress developers](https://comparehostingonline.com/hosting-for/wordpress/) for tooling.

## What are the common mistakes?

-   Testing directly on the live site “just this once”.
-   Pushing a stale database over fresh orders.
-   Leaving staging open to search engines.
-   Forgetting to switch payment gateways to test mode.
-   Never refreshing staging, so it no longer matches live.

## A worked example: testing a PHP upgrade on staging

A shop runs on an older PHP version that is nearing the end of security support. The owner creates a staging site with one click, switches the staging copy to a newer PHP version and clicks through the store. A product filter plugin shows an error because it uses a feature removed in the newer version. They check the plugin’s changelog, find an update that fixes it, apply the update on staging and repeat the test. Everything works, including a test checkout with payment in test mode.

Only then do they take a backup of the live site, update the plugin there and switch the live PHP version. The change takes ten minutes on the live site, and no customer saw an error. Without staging, the filter would have broken in front of customers.

## How do you keep staging and live in sync?

-   Refresh staging from live before each testing session.
-   Keep a written list of the changes you made so you can repeat them on live.
-   Use version control for theme and plugin code where you can.
-   Avoid editing content on staging that you want to keep; edit on live.
-   Delete staging copies when you are done to reduce risk and storage.

## Sources and further reading

-   [WordPress developer documentation: backups](https://developer.wordpress.org/advanced-administration/security/backup/)
-   [WordPress developer documentation: hardening](https://developer.wordpress.org/advanced-administration/security/hardening/)
-   [Google: managing site moves](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes)

## Common questions

Is staging included with hosting?

On many managed WordPress plans, yes, often as one click. Shared hosts may offer it through the control panel or you can create one with a plugin or manually. Check the plan, and whether staging can push to live.

Will staging affect my live site?

No, if it is separate. Be careful when pushing changes back, especially the database, because you could overwrite orders or comments made on the live site in the meantime.

Does staging copy my orders and users?

It copies the database as of that moment. For shops and memberships, exclude those tables when pushing back, or apply changes manually, so you do not lose live data.

Should I block search engines on staging?

Yes. Use a password and a noindex rule, so the copy is not crawled and does not compete with your live pages. Check these settings are not pushed to live by mistake.

How often should I refresh my staging site?

Refresh it from live before each round of testing, so it matches the current site. A stale staging site can give misleading results and hide problems that will appear on live.

## Related

[Managed WordPress hosting](https://comparehostingonline.com/hosting-types/managed-wordpress/) [Website backups](https://comparehostingonline.com/guides/website-backups-guide/) [Best WordPress hosting](https://comparehostingonline.com/best/wordpress-hosting/)

## More guides

[What is HTTP/3 and does your host support it?](https://comparehostingonline.com/guides/what-is-http-3-and-hosting/) [Redis caching explained: what object caching is and whether your site needs it](https://comparehostingonline.com/guides/what-is-redis-object-caching/) [What is SSH access? What it does and how to use it safely](https://comparehostingonline.com/guides/what-is-ssh-access/) [What "unlimited" hosting really means](https://comparehostingonline.com/guides/what-is-unlimited-hosting/) [What is WHOIS privacy? What it hides and what it does not](https://comparehostingonline.com/guides/what-is-whois-privacy/) [WordPress hosting requirements: what your host needs to run WordPress well](https://comparehostingonline.com/guides/wordpress-hosting-requirements/)

MH

**[Muhammad Hamza](https://comparehostingonline.com/team/muhammad-hamza/)** Founder & Editor

Writes and signs off every comparison, and runs the compliance reviews. Has worked on SOC 2 and HIPAA compliance programs for companies.

Our [editorial policy](https://comparehostingonline.com/editorial-policy/) and [testing method](https://comparehostingonline.com/methodology/) are public.
