Staging site
A staging site is a private copy of a live website at its own address, where updates and changes are tried before visitors see them. It helps only if the copy is kept quiet. It must not email customers, take real payments or be open to search engines.
- By
- WP Ministry
- Published
In short
- A staging site is a copy of the live site taken at one moment. It is a place to try changes, not a backup.
- WordPress has a name for it. The environment type "staging" is set with WP_ENVIRONMENT_TYPE in wp-config.php, and a site that sets nothing counts as production.
- A fresh copy holds your real customers, mail settings and payment keys. Stop its email, put its gateways in test mode and close it to search engines before you try anything.
A staging site is a private copy of your website: the same files and the same database, at a different address. You apply an update, try a plugin or change the design there first. If something breaks, it breaks where no visitor or customer sees it.
The copy is taken at one moment. After that the live site keeps receiving orders, comments and edits, and the copy does not. So a staging site is a place to try things. It is not a backup.
Where you meet it
- Your hosting control panel. Many hosts provide a tool that clones the site for testing, and "staging" is what they call the clone.
wp-config.php. WordPress knows four environment types:local,development,stagingandproduction. The linedefine( 'WP_ENVIRONMENT_TYPE', 'staging' );marks a copy. A site with no such line counts as production. WordPress asks hosts that offer staging to set the type on their copies, and plugins and themes can read it and behave differently there.- Site Health. Go to Tools, then Site Health, then the "Info" tab. Under "WordPress", the row "Environment type" shows what the site reports.
- Settings, then Reading. "Discourage search engines from indexing this site" is the box to tick on a copy. WordPress's documentation says it is a request and blocks nobody.
- A store with subscriptions. WooCommerce Subscriptions notices when a site's address differs from the one it was first activated on. It then shows a notice, puts a "Staging" badge beside its menu item, and stops automatic payments and its own emails.
What goes wrong
The copy behaves like the live site. It has the same customers, the same mail settings and the same payment keys. WooCommerce's documentation says other plugins and services may not tell a test order from a real one, and that mail from WordPress, WooCommerce and other plugins may still leave a staging site. "Keep the copy private and quiet" in how to set up a WordPress staging site has the list. The WooCommerce sale readiness checklist shows the payment side.
Search engines find it. Google lists a demo version of a site left open to crawlers among the causes of duplicate content. The Reading setting is only a request, so put the copy behind a password as well.
A push overwrites the live site. The copy's database is as old as the copy. One host's documentation for its push tool warns that sending the whole database to production overwrites it completely, and can lose new orders and new users. Send files, and repeat settings by hand. For a store, see how to update WooCommerce safely.
The copy is stale. A test on a copy that is weeks old proves less. Refresh it before each round of work, then follow how to safely update WordPress.
Common questions
Is a staging site the same as a backup?
No. A backup is a dated copy kept so that you can go back to it. A staging site is a working copy you change on purpose, and it stops matching the live site from the moment it is made. See how to schedule automatic WordPress backups.
What is the difference between staging and production?
Production is the live site, the one visitors and customers use. Staging is the private copy where a change is tried first. WordPress treats every site as production unless WP_ENVIRONMENT_TYPE says otherwise.
Can Google index my staging site?
Yes, if it can reach it. The "Discourage search engines from indexing this site" setting asks search engines to stay away, and WordPress's documentation says it is up to them to honor that. A password stops them.

