Tutorial · migration-hosting · Published 2026-08-16 · 4 min read

How to migrate a single subdomain without touching the rest of the site

Migrate a single subdomain (like blog or shop) to a new host without moving the whole site, with DNS and staging safeguards covered.

Migrating a single subdomain, for example moving shop.example.com to a new host while example.com and www.example.com stay where they are, is a smaller job than a full site move, but it needs its own plan. The shared risk is DNS: because a subdomain is an independent DNS name, you can move it without touching the rest of the zone.

Plan the boundaries

Stage and cut over

  1. Build the new copy first. Upload the subdomain's files and database to the destination host and get it running on a temporary URL or an IP-based address before any DNS change.
  2. Test over the destination's direct address. Bypass DNS by editing your local hosts file to point shop.example.com at the new server, and confirm pages, images, and any forms work from that location. Check that the SSL certificate covers the subdomain (a wildcard or multi-domain certificate usually does).
  3. Lower the DNS TTL before the move. Drop the subdomain record's time to live to something like 300 seconds a day or two ahead so cached answers expire quickly once you point it elsewhere.
  4. Point the record at the new host. Update only the subdomain's record. You do not need to touch the parent domain or any unrelated records.
  5. Reissue SSL if needed. The destination host must be able to validate control of the subdomain. For Let's Encrypt this is normally a DNS-01 or HTTP-01 challenge run automatically by the host.

Verify after switch

Prevention

Keep a small runbook for the subdomain: the record names, their TTL, the certificate type, and the hosting provider credentials. That makes the next migration, or a rollback, a few minutes rather than an investigation.

When to involve a professional

Involve your hosting provider if your control panel does not expose an A or CNAME editor for subdomains, or if the subdomain serves a payment or member area where an interruption would be costly. A short TTL and a tested rollback plan remove most of the risk on your own.

Need a website built, fixed, optimised, migrated or replaced?

This technical resource is written by CSMBAC, a small design and development studio. If you would rather hand the problem to a professional, the website service page explains how we build enquiry-ready websites.

Explore website services