- 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.
- Build and review new pages or a redesign privately.
- Rehearse a migration or a restore; see 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?
- Make a copy
Use the host's staging tool, a plugin or a manual copy of files and database.
- Keep it private
Block search engines and protect it with a password.
- Make and test the change
Click through the pages, forms, logins and checkout.
- 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.
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 for the difference, and hosting for WordPress developers 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.