How to Migrate Website Hosting Without Breaking Your Site
Learn how to migrate website hosting step by step, from full backup to DNS switch. Keep your site live, protect SEO, and avoid data loss during the move.

Last Updated: October 30, 2026
Quick Summary
To migrate website hosting, back up your files and database, set up the new host, transfer files via SFTP, import the database, and update configuration credentials. Test everything on the new server before changing DNS, and lower TTL 24 hours ahead so the switch propagates in minutes.
- Block out two to three hours during your quietest traffic window to do the move.
- Importing a database without updating credentials is the most common cause of a blank white screen.
- Lower TTL to 300 seconds at least 24 hours before the DNS switch.
- Copy MX, SPF, DKIM, and DMARC records before switching nameservers to keep email working.
- Keep the old host active for at least a week so you can roll back if problems surface.
Table of Contents
- Before You Migrate Website Hosting: Prep and a Low-Traffic Window
- Your Website Migration Checklist for a Clean Move
- Transfer Files and Database to the New Host
- Website Migration Tools That Do the Heavy Lifting
- Test Everything Before You Change DNS Records
- How to Achieve Website Migration Without Downtime
- What Website Migration Cost Looks Like and How to Keep It Down
- Start Your Move With GreaterLink’s Migration Support
- Frequently Asked Questions
Before You Migrate Website Hosting: Prep and a Low-Traffic Window
Learning how to migrate website hosting starts with one unglamorous truth: the move itself is easy, but the prep decides whether it goes clean. Failures in a migration usually happen before anyone touches a file.
Pick a low-traffic window first. Check your analytics for the quietest hour of your quietest day, usually late at night or early Sunday. Then block out two to three hours.
Create a Full Backup of Files and Database
A website migration backup is a complete copy of your site files and your database, saved somewhere other than your hosting account.
Download both through cPanel’s File Manager and phpMyAdmin, or use your host’s backup tool. Keep the archive on your own computer or cloud drive. Do not rely on the old host keeping a copy after you leave.
Check Compatibility With the New Server Environment
Compare your current setup against the new host before you move anything. Write down your PHP version, database version, and any installed extensions.
Most migration failures trace back to a version mismatch. If your site runs an older PHP version and the new host defaults to a newer one, test that combination on a staging site first.
Your Website Migration Checklist for a Clean Move
A website migration checklist keeps a multi-step job from turning into guesswork. Here is the one we use, in order:
- Confirm the low-traffic window and block the time
- Download a full backup of files and database
- Record PHP, database, and extension versions
Print it. Cross items off as you go. A checklist sounds basic until you’re three hours in and can’t remember whether you updated the database credentials.
Transfer Files and Database to the New Host
Two things move: the files and the database. Files are the easy half. The database is where people get stuck.

Move Website Files With FTP or SFTP
Connect to the new server, upload your site files to the correct directory, and keep the folder structure identical to the old host. If you need to set up access first, see how to create an FTP account.
SFTP is the better choice when available, it encrypts the transfer, which matters if your files include customer data or credentials. For step-by-step help, see how to connect to your website with FileZilla.
Export, Import, and Configure the Database
Export your database from the old host through phpMyAdmin as a SQL file, then import it into the new database.
Create the new database and user first. After import, open your configuration file and update the database name, username, password, and host.
Watch out: importing a database without updating credentials is the most common cause of a blank white screen after migration.
Website Migration Tools That Do the Heavy Lifting
Website migration tools automate the file and database transfer, which saves time on large or complex sites.
Test Everything Before You Change DNS Records
Testing is where a migration either earns its clean reputation or quietly ships broken forms, dead redirects, and missing images to real customers. Build a test matrix, run it on the new server using a hosts file edit or the new host’s temporary URL, and record pass/fail for each row before any DNS change.
The Migration Test Matrix
Run every row below against the new server while the old site still serves visitors. Fix failures here, not in production.
| Test | What to check | Pass criteria |
|---|---|---|
| Navigation and links | Every main menu item, footer link, and in-content link | No 404s, no redirect loops |
| Forms | Contact, quote request, newsletter signup, any lead form | Submission sends, confirmation shows, email arrives |
| Logins and accounts | Admin panel, customer accounts, password reset | Login succeeds, reset email delivers |
| Checkout and payments | Add to cart, coupon codes, payment gateway sandbox, order confirmation | Order completes, receipt sends, order appears in admin |
| SSL and HTTPS | Homepage, login, checkout, any form page | Padlock shows, no mixed-content warnings |
| Redirects | Old URLs, trailing-slash variants, www vs. non-www | 301s resolve to correct destination |
| Mobile rendering | Homepage, product page, checkout on a phone | Layout intact, tap targets usable |
| Performance | Homepage and heaviest page | Load time comparable to old host |
| Scheduled tasks | Cron jobs, backups, sitemap generation | Tasks run on schedule |
| Email deliverability | Send and receive from a domain address | Mail arrives, no spam-folder landing |
A common pattern is testing only the homepage and calling it done. The failures that hurt are almost always on forms, checkout, and logins, the pages that touch money and customer data.
SEO Preservation Checks
A migration can silently strip rankings if URLs, metadata, or crawlability change. Before the DNS switch, confirm:
- URL structure is identical. If any URL must change, set up 301 redirects from the old path to the new one and test each redirect.
- Metadata survived. Page titles, meta descriptions, canonical tags, and structured data should match the old site.
- Robots and sitemaps are correct. Confirm
robots.txtdoes not block crawlers and the XML sitemap lists live URLs.
After the DNS change, monitor Search Console daily for the first two weeks, watching for coverage errors, a spike in 404s, or a drop in indexed pages. A temporary ranking dip during propagation is common; a sustained drop usually points to a redirect or canonical problem, not the move itself. Proactive auditing of these technical indicators remains the most effective way to preserve search rankings while ensuring that the transition to your new infrastructure is seamless.
Do not skip the checkout test on an e-commerce site. Run a real sandbox transaction and confirm the order lands in the admin and the confirmation email sends. A checkout that fails silently after launch is the most expensive migration mistake there is.
Post-Launch Verification
Once DNS propagates, re-run the matrix against the live domain. Then check:
- Search Console for crawl errors and indexing status
- Analytics for traffic and conversion continuity
- Uptime monitoring for the first 72 hours
Keep the old host active through this window so you can roll back if a problem surfaces.
How to Achieve Website Migration Without Downtime
Zero-downtime migration is a sequence, not a trick: lower TTL early, keep the old site live until the new one passes testing, switch DNS, and hold a rollback plan you can execute in minutes. When you’re ready for the switch, see how to point your domain to GreaterLink. The cutover itself takes minutes; the discipline is in the preparation.
Lower TTL Before the Switch
TTL, or time to live, tells resolvers how long to cache your DNS records (Acronyms and Terms). Drop the TTL on your A, CNAME, and MX records to a short interval, 300 seconds is common, at least 24 hours before the switch, so new values propagate in minutes instead of hours.
Do not lower TTL and switch in the same hour. The old TTL must expire first, or some resolvers will keep serving the old records.
Preserve Email While You Move the Website
Email is the part of a hosting move that quietly breaks, and most migration guides skip it. Your MX, SPF, DKIM, and DMARC records decide where mail goes and whether it is trusted; changing hosts can cut mail off or send it to spam if these are missed.
Before you switch nameservers:
- Copy every MX record from the old DNS zone and recreate it on the new one. If your email lives with a separate provider, confirm those MX records stay pointed at that provider, not the new web host.
- Preserve SPF. Copy the TXT record that authorizes sending servers. If the new host sends mail, add its include to the SPF record rather than replacing the old one.
- Recreate DKIM. Copy the DKIM TXT record from the old zone. If the new host generates its own DKIM key, publish that record and keep the old one until mail flow is confirmed.
- Keep DMARC intact. Copy the
_dmarcTXT record. Do not tighten policy during a migration; change one thing at a time.
After propagation, send a test message from an outside address to a domain mailbox and reply from the domain. Check the message headers for SPF and DKIM pass results.
If email is business-critical, migrate mailboxes before the website. That separates the two risks and lets you confirm mail flow while the old site is still serving traffic.
Synchronize Dynamic Sites Before Cutover
Stores, membership sites, and any site that keeps changing during migration need a final data sync. The file and database copy you made during prep goes stale the moment a customer places an order or a member updates a profile.
Plan the cutover like this:
- Put the site into a brief maintenance mode or pause checkout on the old host.
- Export the database one final time and import it into the new server.
- Run the test matrix again on the new server, including a sandbox order and a login.
- Switch DNS and take the old site out of maintenance only after the new one passes.
For high-volume stores, a short maintenance window of a few minutes beats risking orders placed on the old database after the final sync.
Rollback Criteria and Steps
Treat the DNS change as reversible only if you plan for it. Before cutover, write down the rollback trigger, a failed checkout, broken logins, missing email, or a sustained error rate after propagation, and roll back rather than debug in production.
Rollback steps:
- Point nameservers or A records back to the old host.
- Restore the old TTL values once the rollback is confirmed.
- Keep the old host’s files and database intact until the new site has run cleanly for at least a week.
Because you lowered TTL in advance, the rollback propagates in minutes. This is why the TTL step is not optional, it is your safety net.
Security During the Transfer
Use SFTP or SSH rather than plain FTP so credentials and files are encrypted in transit. Do not email database dumps or configuration files; move them through encrypted storage. Delete temporary backup copies containing customer data once verified, and rotate any credentials exposed during the move.
Downtime avoidance is a sequence, not a single setting: lower TTL 24 hours ahead, preserve MX/SPF/DKIM/DMARC, do a final database sync for dynamic sites, and hold a written rollback plan. The cutover itself should take minutes.
What Website Migration Cost Looks Like and How to Keep It Down
To keep costs down, avoid paying for overlapping hosting longer than needed. For current pricing or a quote, see GreaterLink’s website.
Start Your Move With GreaterLink’s Migration Support
Moving hosts is a project, not a click. The prep, backup, database, DNS records, and testing all matter, skipping any one is how sites go dark.
That’s where we come in. GreaterLink offers cPanel-based hosting with automated daily backups and malware scans, free SSL and web application firewall on shared plans, and 24/7 support from real people based in the USA.
Get started with GreaterLink and move your site to hosting that keeps it fast, secure, and online.
Frequently Asked Questions
How long does it take to migrate website hosting?
A small brochure site can move in under an hour once the backup and database export are ready. Larger sites with many images or an e-commerce catalog often take two to four hours for the transfer itself. The DNS propagation that follows usually finishes within 24 to 48 hours, though many visitors see the new host much sooner. Plan the file and database work for a low-traffic window so the cutover happens when few people are browsing.
Can I move my website to a new host without downtime?
Yes, if you build and test the site on the new server before touching DNS. Copy files and the database, set up a staging or test environment, and confirm pages, forms, and checkout all work. Then lower your DNS TTL a day ahead, switch nameservers, and keep the old account active until propagation settles. This approach to website migration without downtime keeps the live site reachable while the new one is verified, and gives you a rollback path if something breaks.
What should I back up before changing web hosts?
Take a full backup of website files and the database, and store it somewhere you control, not just on the old server. Include configuration files, SSL certificates if you manage them yourself, email account settings, and any custom DNS records. Export the database through phpMyAdmin or your host’s tools and check the file size matches expectations. A complete website migration checklist starts with this backup because it is your rollback plan if the transfer goes wrong.
Will changing hosting providers affect my website’s SEO?
The move itself does not hurt rankings if URLs, redirects, and HTTPS stay intact. The risks are broken links, missing redirects, a lapsed SSL certificate, or a slow new server. Test key pages on the new host before switching DNS, keep the same URL structure, and monitor Search Console for crawl errors for a few weeks after launch. Website migration tools that preserve permalinks and regenerate redirects reduce the chance of losing traffic during the transition.
Need a hand with your website or hosting?
Talk to a real person at GreaterLink, any time, day or night.
More from the blog
What Does Website Design Service Pricing Really Cost?
Website design pricing varies from $1,500 to $100,000. Compare hourly rates, flat fees, and maintenance costs to budget your project with confidence.
7 Bluehost vs DreamHost Beginner Facts for 2026
Bluehost vs DreamHost for beginners: compare pricing, WordPress setup, ease of use, and support to pick the right host for your first site.
7 GoDaddy Alternatives for Small Business Owners
Compare 7 GoDaddy alternatives for small business hosting, from WordPress and ecommerce options to all-in-one platforms. Find the right fit for your site.


