Free migration. 30-day money-back guarantee.See plans

Skip to content
ProWebHostingPROWBHOSTING

Hosting basics

How to Migrate a Website to a New Host Without Downtime

By ProWebHosting team. Published 13 September 2026. 9 min read.

To migrate a website to a new host, back up the files and database at the old host, upload both to the new account, test the site on the new server before changing DNS, then point the domain at the new host and keep the old account live for a week. ProWebHosting does this free of charge on request; doing it yourself in DirectAdmin takes an hour or two.

Moving a website between hosts sounds risky, but it is a well-worn path. Every migration is the same four moves: copy the files, copy the database, test on the new server, then switch DNS. Done in that order, visitors never see a broken page and Google never sees a gap. This guide covers the free migration we offer and the do-it-yourself route through DirectAdmin, so you can pick whichever suits you.

Two ways to move: let us do it, or do it yourself

ProWebHosting migrates existing websites free of charge on request. Order a plan, message us on WhatsApp with your old hosting login or a full backup, and we copy the site, database and email accounts to your new DirectAdmin account, enable SSL and test it before you change DNS. Details are on our website migration page.

The DIY route makes sense if you prefer not to share logins, if you want to understand your own site better, or if you are a freelancer moving a client site and want to control every step. It needs no special tools beyond a browser, the two control panels and about an hour of focused time for a typical WordPress site.

Website migration to ProWebHosting in five stepsTimeline: send your old hosting details, we copy files and database, you test on a temporary URL, DNS is pointed to the new server, and the site goes live with the old host cancelled afterwards.Moving a website without downtime1Send detailsOld host login or abackup file, sent onWhatsApp2We copy the siteFiles, database andemail to your newaccount3Test on a temp URLYou check every pagebefore anythingchanges4Point the DNSUpdate nameservers orA record at yourregistrar5Go liveOld host cancelledonly after the newsite is confirmedThe site stays online on the old host until the last step, so visitors never see a gap.
The migration timeline: backup, transfer, test, switch DNS, then keep the old host live for a week.

Before you start: what to check and what to keep

A migration goes wrong for boring reasons: a forgotten email account, a database password written in the wrong file, or DNS changed before the new site was tested. Ten minutes of preparation removes most of them.

  • Write down where your domain is registered and confirm you can log in there. You will change nameservers or an A record at the end.
  • List every email account on the old host. Email does not move with the website files; each mailbox has to be recreated and its messages exported if you want to keep them.
  • Note the PHP version your site runs on at the old host. You will set the same version on the new account with the PHP version selector.
  • Check total disk usage at the old host against the storage on your new plan. A site with 8 GB of images will not fit on a 5 GB plan; see our hosting plans for the limits.
  • Do not cancel the old hosting yet. Keep it running until the new site has been live on the new server for at least a week.

The DIY route: migrating with DirectAdmin

The steps below assume a WordPress site, since that covers most websites in Pakistan, but a Laravel app or a hand-coded PHP site follows the same pattern: files plus database plus one configuration file.

Migrating a website into a DirectAdmin account

  1. 1

    Download the files from the old host

    In the old control panel's file manager, select everything inside public_html, compress it into a single zip and download it. If the old panel has a full account backup tool, download that too; it contains email and databases as well.

  2. 2

    Export the database

    Open phpMyAdmin at the old host, select the site's database, click Export and save the .sql file. For WordPress, the database name is in wp-config.php under DB_NAME.

  3. 3

    Add the domain to the new account

    In DirectAdmin, if the domain is not already the account's main domain, go to Account Manager, then Domain Setup, and add it. A public_html folder is created for it.

  4. 4

    Upload and extract the files

    Go to System Info & Files, open File Manager, navigate to the domain's public_html, upload the zip and use the extract option. Delete the zip afterwards so it does not count against your storage.

  5. 5

    Create a new database and import

    Under Account Manager, open MySQL Management and create a database with a user and a strong password. Open phpMyAdmin from the same page, select the new database and import the .sql file.

  6. 6

    Update the configuration file

    Edit wp-config.php in File Manager and set DB_NAME, DB_USER and DB_PASSWORD to the new values. DB_HOST is normally localhost. Save the file.

  7. 7

    Match the PHP version

    Under Advanced Features, use the PHP version selector to pick the same PHP version the site used at the old host. You can move to a newer version once the migration is confirmed working.

  8. 8

    Recreate email accounts

    Under E-mail Manager, open E-mail Accounts and create each mailbox with the same address. Set up forwarders and autoresponders again if you used them.

If your old host also runs DirectAdmin, there is a shortcut. Under System Info & Files, use Create/Restore Backups at the old host to generate a full user backup, download it, upload it to the same page on the new account and restore it. Files, databases and email accounts come across in one step. Backups from other control panels cannot be restored this way from a user account; send us the backup on WhatsApp and we will handle the conversion for you.

Test the site on the new server before changing DNS

This is the step that prevents downtime, and it is the one most people skip. Your domain still points to the old host, so you need a way to see the copy on the new server. The reliable method is to edit the hosts file on your own computer so that, for you only, the domain resolves to the new server's IP address, which is in your welcome email.

On Windows the file is C:\Windows\System32\drivers\etc\hosts and must be opened as an administrator. On macOS and Linux it is /etc/hosts. Add one line with the new IP, a space and your domain, save, and reload the site in a private browser window. You are now viewing the migrated copy while everyone else still sees the old host.

  • Open the home page, an inner page, a blog post and the contact form. Submit the form to confirm PHP mail works.
  • Log in to the WordPress dashboard and check that media files load and that no plugin reports a missing PHP extension.
  • For a store, run a test order through to the payment gateway page.
  • Request the free SSL certificate from Account Manager, SSL Certificates, only after DNS has changed; Let's Encrypt needs the public domain to reach the new server.

Switch DNS and let propagation finish

Once the copy works, log in at your domain registrar. If your domain used the old host's nameservers, change them to the nameservers in your ProWebHosting welcome email. If you manage DNS elsewhere, such as at the registrar or on a CDN, change the A record for the domain and the www record to the new server IP and leave the rest untouched.

DNS changes spread across the internet gradually. Most visitors reach the new server within a few hours; a small number of networks cache old records for up to 48 hours. During that window some visitors land on the old host and some on the new one, which is why both copies must be complete and why you should avoid editing content on either site for a day. Remove the hosts file line on your computer once the change has propagated.

What moves automatically and what needs a manual step
ItemMoves with files and database?What to do
Pages, posts, media, theme, pluginsYesNothing extra after import
Email accounts and stored messagesNoRecreate mailboxes; export and import messages via your mail app if needed
SSL certificateNoRequest a new free certificate after DNS points to the new server
Cron jobsNoRecreate under Advanced Features, Cron Jobs
Custom DNS records (Google Workspace, verification TXT)No, if nameservers changeCopy them into DNS Management on the new account before switching
PHP version and settingsNoSet with the PHP version selector

After the move: keep rankings and clean up

A properly executed migration has no effect on search rankings, because the URLs, content and response codes stay the same. Google simply fetches the same pages from a different IP address. Problems arise only when URLs change or pages start returning errors, so run a quick crawl with any free link checker after the move and fix anything that returns 404 or 500.

Keep the old hosting account active for about a week, then cancel it once you are sure no email is still arriving there and the site has been stable. Take a fresh backup from Create/Restore Backups on the new account and download it, so you have a clean copy of the site in its new home.

Need hosting that just works?

Order any plan and send us your old hosting details on WhatsApp. We will migrate your site free of charge, test it and tell you exactly when to switch DNS.

Frequently asked questions

How long does a website migration take?

Copying a typical WordPress site takes between thirty minutes and two hours depending on its size. DNS propagation afterwards takes a few hours for most visitors and up to 48 hours in rare cases, during which both copies of the site stay live.

Will my website go down during migration?

Not if you copy and test the site on the new server before changing DNS. The old host keeps serving visitors until the switch, and the new host serves them after it, so there is no gap.

Does ProWebHosting migrate websites for free?

Yes. When you order any plan, send us your old hosting login or a full backup on WhatsApp and we move the site, database and email accounts to your new DirectAdmin account at no charge, then test it before you change DNS.

Can I migrate a site from a different control panel to DirectAdmin?

Yes. You can copy the files and database manually using the steps in this guide, or send us a full backup from your old panel and we will convert and restore it into your DirectAdmin account for you.

Will migrating to a new host affect my Google rankings?

No, as long as your URLs stay the same and the pages return normally on the new server. Google reads the same content from a new IP address. Rankings are affected only if pages break or URLs change during the move.

Do my email accounts move with the website?

Not automatically. Email accounts have to be recreated on the new host with the same addresses, and existing messages can be exported and imported through your mail app. If we handle your migration we recreate the mailboxes for you.

Related guides

Ready to host your website in Pakistan?

Message us on WhatsApp with your domain name and what you are building. We reply during office hours with a plan recommendation and payment details for JazzCash, Easypaisa or bank transfer.

Monday to Friday, 9:00 AM to 5:00 PM (PKT). Emergency support is available 24/7/365 for hosting outages.