Hosting basics

How to Use a Subdomain as a Private Test Copy of Your Site

3 min readUpdated December 1, 2026

Changing a live website is risky. A new plugin, a theme update or a design change can break pages while visitors are using them. A safer way is to make a private copy of your site, try the change there and only then repeat it on the real site. A subdomain is a simple place for that copy. This guide shows the idea step by step.

What a test copy gives you

A test copy is a second version of your site that only you use. You can break it, fix it and learn from it. Nobody loses a sale or sees an error. It is the same idea as the staging site described in our guide on WordPress staging sites, but built by hand on a subdomain.

Why a subdomain

A subdomain is a prefix on your own domain, such as test.example.com. It lives in its own folder, so its files do not mix with your live site. You do not need to buy another domain, and it is easy to delete later. Our guide on subdomains and subfolders explains how subdomains differ from subfolders.

Steps to build the copy

  1. Create the subdomain. In cPanel open the subdomain tool, type a name such as test and accept the suggested folder.
  2. Copy the files. Use File Manager to copy your site files into the new folder.
  3. Copy the database. Create a new, empty database and user, then export your live database and import it into the new one. Our knowledge base has articles on exporting and importing a database with phpMyAdmin.
  4. Point the copy at its own database. For WordPress, edit the database name, user and password in the wp-config.php file of the copy. Without this step, the copy would change your live data.
  5. Update the site address. A WordPress copy still thinks it lives at the main address. Change the address settings so links stay on the subdomain.
  6. Add a certificate. The subdomain needs its own padlock if you want to load it over a secure connection.

Keep the test copy private

  • Ask search engines to stay away. In WordPress, tick the option that discourages search engines from indexing the site. A copy of your content in search results can hurt the real site.
  • Add a password. In cPanel you can password protect the folder, so only people with the login can open it.
  • Turn off real emails and payments. If the copy is a shop, make sure it cannot send order emails or take real payments.

Testing well

Write down what you will change before you start. Make one change at a time, load the main pages and test forms and the checkout on a phone. When it works, repeat the same change on the live site, ideally after taking a backup. Our guide on website backups explains how to take a full backup first.

Clean up afterwards

When you finish, delete the subdomain, its folder and its database. Old test copies often hold out-of-date software that attackers look for. Removing them keeps your account tidy and safe.

FAQ

Will the test copy use extra space?

Yes, roughly the size of your site. Check your usage first.

Can I turn the test copy into the live site?

You can, but it needs care with addresses and databases. Most owners find it simpler to repeat the tested change on the live site.

Is this the same as a staging tool?

The result is similar. A staging tool does more steps for you, while a manual copy gives you full control.

More Hosting basics guides
Still need help?Our support team can look at your account and your case.
Open a support ticket

© 2026 Sulserv. All rights reserved.

Hosting. Domains. Support.System Status