Blog / WordPress
How to Set Up a WordPress Staging Site
Your developer updates a plugin on a Tuesday afternoon, the homepage goes blank, and the first person to notice is a customer on WhatsApp asking why the site is down. If this sounds familiar, the problem is usually not the developer's skill. It is that every change is being made directly on the live website, with real visitors watching.
A staging site fixes that. It is a private copy of your WordPress site where updates, new pages and design changes are made and tested first. Only when everything works does the change go live. This guide explains how to set one up, what to test, and how to push changes live without taking the site down.
Why edits on the live site keep breaking things
WordPress is a stack of moving parts: the core software, a theme, often a dozen or more plugins, and PHP on the server underneath. Each part is updated by a different company on its own schedule. An update that is fine on its own can clash with another plugin, and the only way to know is to run it. Doing that on the live site means your customers are the testers.
The damage is rarely just a few minutes of downtime. A broken checkout on a WooCommerce store loses orders quietly. A form that stops sending enquiries can go unnoticed for weeks. A theme update that shifts the layout makes the business look careless to every visitor arriving from Google or Instagram.
Staging separates the risky work from the public site. Your developer gets a safe place to try things, and you get to see and approve changes before anyone else does. For an owner, that approval step is the real value.
Three ways to get a staging site
There is no single right method. The one you pick depends on your hosting plan and how often the site changes.
- Hosting panel staging: many managed WordPress hosts include a one click staging button that clones the site to a private address and lets you push changes back. The easiest route if your host offers it.
- Plugin based staging: a backup or migration plugin copies the whole site, files and database, to a second WordPress install on a subdomain such as staging.yourbusiness.in. Works on almost any host, including cheap shared plans.
- Manual copy: the developer creates a subdomain, copies the files over FTP or cPanel, exports and imports the database, and corrects the site address in the settings. More work, but full control and no extra tools.
Ask your host first. If staging is already included in your plan, you are paying for it whether you use it or not. If it is not, a subdomain plus a migration plugin is the usual next step, and it keeps the staging copy on the same server as the live site so the two behave the same way.
Setting one up, step by step
Whichever route you take, the steps are similar. Have your developer do the work, but understand the sequence so you can check it was done properly.
- Take a full backup of the live site first, files and database, and download a copy. If anything goes wrong during setup, this is your way back.
- Create the staging location: a subdomain in your hosting panel, or the staging slot your host provides.
- Copy the site across: files, database, uploads and plugins. A migration plugin packages all of this into one archive and restores it at the new address.
- Update the site URL so that links, images and the login page point to the staging address, not the live one.
- Log in to staging and click through the main pages, the contact form and the checkout to confirm the copy works before anyone edits it.
Write down the staging address and the login, and keep it somewhere you control, not just in the developer's notes. If you change developers, the next person needs to find it on day one.
Keep the staging site private
A staging copy is a second version of your website on the public internet, and that creates three problems if it is left open. Google may index it and show duplicate pages, which muddles your search results. Customers may land on it and place a test order or send an enquiry that nobody reads. And it is one more login for an attacker to try.
Fix all three on day one. Tick the "Discourage search engines from indexing this site" box in the WordPress reading settings. Add a password at the server level through your hosting panel, so the staging address asks for a login before WordPress even loads. Switch off outgoing email on staging, or point it to a test inbox, so order confirmations and form replies do not reach real customers from the copy.
If the site takes payments, put the payment gateway into test mode on staging, or disconnect it. Our guide to WordPress security for business owners covers the rest of the hardening checklist, and most of it applies to the staging copy as much as the live site.
What to test before anything goes live
Staging only helps if someone actually tests on it. Agree a short checklist with your developer and run it after every change, big or small. Ten minutes here saves a weekend of firefighting.
- Open the homepage, the service or product pages and the contact page on a phone and a laptop, and look for layout shifts, missing images or broken buttons.
- Submit every form and confirm the enquiry arrives in the test inbox.
- If you sell online, run a test order from product page to confirmation, including coupon codes and shipping options.
- Check that tracking codes, chat widgets and WhatsApp buttons still load and work.
- Look at page speed. A new plugin that makes every page noticeably slower is something you want to know about before customers do.
Do the final pass yourself. You know what a normal enquiry looks like and which pages customers actually use. If you are also weighing up whether WordPress is the right platform for an online shop at all, our comparison of WordPress and Shopify explains where staging and maintenance fit into that choice.
Pushing changes live without breaking the site
Once a change passes on staging, it has to reach the live site. There are two sensible ways to do it, and one that owners should refuse.
The first is to repeat the change on live. For a plugin update or a settings tweak, your developer simply does the same thing again on the live site, now knowing it works. Take a backup immediately before, and do it at a quiet hour; early morning suits most Indian businesses.
The second is to push the whole staging copy over the live site. Hosting panels with staging offer this as a button. On other hosts, a migration and backup plugin such as SiteShift Migrator packages the staging site and restores it over live in one move, which suits bigger changes like a redesign. The catch: anything added on live since the copy was taken, such as new orders, comments or form entries, will be overwritten unless the database is handled carefully. Agree with your developer in advance which data must be kept.
The way to refuse is editing live "just this once" because the change is small. Small changes break sites too. If your current developer resists working through staging, that is worth a frank conversation, because the cost of the habit lands on your business, not on them.
- Never edit live first: Every update, new page or design change should be made and tested on a staging copy before it touches the site customers see.
- Ask your host: Many managed WordPress plans include one click staging; if yours does not, a subdomain plus a migration plugin does the same job.
- Back up before you start: Take a full downloadable backup of the live site before creating staging, and again before pushing any change live.
- Lock the copy down: Block search engines, add a server level password, and switch off real emails and payments on the staging site.
- Test like a customer: Click through the key pages, submit every form and run a test order on staging after each change, on a phone as well as a laptop.
- Push with care: Repeat small changes on live by hand; for big ones, push the staging copy over but agree first which live data must not be overwritten.
FAQs
Does a staging site cost extra?
It depends on your hosting. Many managed WordPress hosts include staging in the plan at no added cost. On shared hosting you usually need a subdomain, which is normally free, and a migration plugin to copy the site across. Some developers charge a one time fee for the initial setup. Compared with the cost of a broken checkout or a day of downtime, staging is one of the cheaper safeguards a business website can have.
How often should the staging site be refreshed from live?
Before each round of changes. The staging copy drifts away from the live site as new orders, posts and form entries arrive, and as small fixes get made directly on live. If your developer tests an update on a copy that is months old, the result may not match what happens on live. A simple rule: pull a fresh copy from live, make the change, test it, then push. Treat staging as disposable, not as a second site to maintain.
Can my developer skip staging for small changes like a plugin update?
Small changes are exactly where staging earns its keep, because they are the ones nobody expects to break anything. A minor plugin update can clash with your theme or another plugin and take the checkout down. The staging step for a plugin update takes a few minutes: update on staging, click through the key pages, then update on live. If a developer finds that too slow, agree a fixed maintenance window instead, but do not drop the test.
What if my site has already been broken by a live edit?
First, restore the most recent backup from before the change, if your host or backup plugin has one. If there is no backup, the developer will need to roll back the specific plugin or theme update by hand. Once the site is stable, set up staging and a daily backup schedule before any further work, so the next change has a safety net. If you would like someone to look over how your WordPress site is being maintained, get in touch and we will start with the backups.
Want help putting this into practice?
See our SiteShift Migrator, or book a free discussion and we'll review your business first.
Book a Free DiscussionPrefer WhatsApp? Message us and we will reply during working hours.