{
    "title": "How to migrate a WordPress site to a new host without downtime",
    "seo_title": "Migrate WordPress to a New Host Without Downtime",
    "h1": "How to migrate a WordPress site to a new host without downtime",
    "description": "Moving WordPress from one host to another: timeline, TTL, copy, hosts file test, DNS switch, checks, SEO and a rollback plan.",
    "lead": "Changing host without taking the site down: preparation and TTL, hosts’ free migration services, the manual method with mysqldump and WP-CLI, testing through the hosts file, DNS switch, checks, SEO and a rollback plan.",
    "language": "en",
    "locale": "en-US",
    "type": "article",
    "url": "https://www.wp-feint.com/migrate-wordpress-to-new-host/",
    "canonical": "https://www.wp-feint.com/migrate-wordpress-to-new-host/",
    "markdown": "https://www.wp-feint.com/migrate-wordpress-to-new-host/index.md",
    "json": "https://www.wp-feint.com/migrate-wordpress-to-new-host/index.json",
    "published": "2026-08-30T06:00:00+00:00",
    "modified": "2026-11-22T12:17:33+00:00",
    "site": {
        "name": "WP Feint",
        "url": "https://www.wp-feint.com/"
    },
    "translations": [
        {
            "language": "en",
            "hreflang": "en-US",
            "title": "How to migrate a WordPress site to a new host without downtime",
            "url": "https://www.wp-feint.com/migrate-wordpress-to-new-host/",
            "markdown": "https://www.wp-feint.com/migrate-wordpress-to-new-host/index.md",
            "json": "https://www.wp-feint.com/migrate-wordpress-to-new-host/index.json"
        },
        {
            "language": "fr",
            "hreflang": "fr-FR",
            "title": "Migrer un site WordPress vers un nouvel hébergeur sans coupure",
            "url": "https://www.wp-feint.com/fr/migrer-site-wordpress-nouvel-hebergeur/",
            "markdown": "https://www.wp-feint.com/fr/migrer-site-wordpress-nouvel-hebergeur/index.md",
            "json": "https://www.wp-feint.com/fr/migrer-site-wordpress-nouvel-hebergeur/index.json"
        },
        {
            "language": "es",
            "hreflang": "es-ES",
            "title": "Migrar un sitio WordPress a un nuevo hosting sin cortes",
            "url": "https://www.wp-feint.com/es/migrar-wordpress-nuevo-hosting/",
            "markdown": "https://www.wp-feint.com/es/migrar-wordpress-nuevo-hosting/index.md",
            "json": "https://www.wp-feint.com/es/migrar-wordpress-nuevo-hosting/index.json"
        },
        {
            "language": "de",
            "hreflang": "de-DE",
            "title": "WordPress-Umzug zu einem neuen Hoster ohne Ausfallzeit",
            "url": "https://www.wp-feint.com/de/wordpress-umzug-neuer-hoster/",
            "markdown": "https://www.wp-feint.com/de/wordpress-umzug-neuer-hoster/index.md",
            "json": "https://www.wp-feint.com/de/wordpress-umzug-neuer-hoster/index.json"
        },
        {
            "language": "it",
            "hreflang": "it-IT",
            "title": "Migrare un sito WordPress su un nuovo hosting senza interruzioni",
            "url": "https://www.wp-feint.com/it/migrare-wordpress-nuovo-hosting/",
            "markdown": "https://www.wp-feint.com/it/migrare-wordpress-nuovo-hosting/index.md",
            "json": "https://www.wp-feint.com/it/migrare-wordpress-nuovo-hosting/index.json"
        },
        {
            "language": "pt",
            "hreflang": "pt-BR",
            "title": "Migrar um site WordPress para uma nova hospedagem sem interrupção",
            "url": "https://www.wp-feint.com/pt/migrar-wordpress-nova-hospedagem/",
            "markdown": "https://www.wp-feint.com/pt/migrar-wordpress-nova-hospedagem/index.md",
            "json": "https://www.wp-feint.com/pt/migrar-wordpress-nova-hospedagem/index.json"
        },
        {
            "language": "nl",
            "hreflang": "nl-NL",
            "title": "Een WordPress-site verhuizen naar een nieuwe host zonder downtime",
            "url": "https://www.wp-feint.com/nl/wordpress-verhuizen-nieuwe-host/",
            "markdown": "https://www.wp-feint.com/nl/wordpress-verhuizen-nieuwe-host/index.md",
            "json": "https://www.wp-feint.com/nl/wordpress-verhuizen-nieuwe-host/index.json"
        }
    ],
    "headings": [
        {
            "level": 1,
            "text": "How to migrate a WordPress site to a new host without downtime"
        },
        {
            "level": 2,
            "text": "The timeline of a zero-downtime migration"
        },
        {
            "level": 2,
            "text": "Prepare: inventory, backup and TTL"
        },
        {
            "level": 2,
            "text": "Three ways to copy the site"
        },
        {
            "level": 3,
            "text": "The host’s migration service"
        },
        {
            "level": 3,
            "text": "With a plugin"
        },
        {
            "level": 3,
            "text": "The manual method"
        },
        {
            "level": 2,
            "text": "Test the new server before the switch"
        },
        {
            "level": 2,
            "text": "The switch and post-migration checks"
        },
        {
            "level": 2,
            "text": "SEO: same address or new domain"
        },
        {
            "level": 2,
            "text": "The rollback plan"
        },
        {
            "level": 2,
            "text": "WP Feint after a change of host"
        },
        {
            "level": 2,
            "text": "Frequently asked questions"
        },
        {
            "level": 3,
            "text": "Key takeaways"
        },
        {
            "level": 2,
            "text": "New server, same protections"
        },
        {
            "level": 2,
            "text": "Sources"
        }
    ],
    "body": "Migrating a WordPress site to a new host takes six stages: prepare (inventory, backup, lower TTL), copy the files and database, test the new server before the public sees it, switch DNS, check, and only then cancel the old hosting. Done properly, the migration causes no downtime and changes nothing for SEO. This guide gives you the timeline, the commands for the manual method, what hosts will do for you for free, and the rollback plan.\n\nLooking to create a copy of the site (staging, template site) rather than move it? That is covered in our guide to [duplicating a WordPress site](https://www.wp-feint.com/duplicate-wordpress-site/). Not chosen the new host yet? Start with our [WordPress hosting comparison](https://www.wp-feint.com/best-wordpress-hosting/).\n\n## The timeline of a zero-downtime migration\n\nThe classic mistake is doing everything on the same day. The new server must be ready and tested before DNS points to it, and the old one must stay live for a few days afterwards. The animation shows the recommended sequence.\n\n*The DNS switch comes last, once the new server has already been tested.*\n\n## Prepare: inventory, backup and TTL\n\nA migration rarely fails because of WordPress, almost always because of something forgotten around it. Before touching anything, list everything that has to move.\n\n*Half of the list is not inside WordPress: that is the half people forget.*\n\n- **Full backup** stored away from both servers, with a restore already tested (our [3-2-1 backup method](https://www.wp-feint.com/wordpress-backups-3-2-1-strategy/)).\n- **Versions**: PHP and MySQL or MariaDB at least as recent on the new server, same PHP extensions (imagick, intl, redis if used).\n- **DNS zone**: export or copy every record, not just the A record. A forgotten MX or TXT record cuts email or breaks a verification (Search Console, SPF).\n- **[TTL](https://www.wp-feint.com/glossary/dns-ttl/)**: 24 to 48 hours before the switch, lower the time to live of the A and AAAA records to 300 seconds. Resolvers will forget the old address within five minutes instead of several hours, which also makes a rollback fast.\n\n## Three ways to copy the site\n\n| Method | For whom | Cost | Watch out for |\n| --- | --- | --- | --- |\n| Host’s migration service | Everyone, as a first choice | Often free | Lead time, access to hand over |\n| Plugin (All-in-One WP Migration, Duplicator, Migrate Guru) | Small and medium sites, no SSH | Free to a few dozen dollars | Upload limit, archives to delete |\n| Manual (SFTP or SSH, mysqldump, WP-CLI) | Large sites, developers | Free | Requires comfort with the command line |\n\n*All three methods lead to the same result; they differ in time and control.*\n\n### The host’s migration service\n\nMany hosts migrate your site for free, because it is a selling point. **o2switch** advertises a free migration for sites hosted elsewhere (see [our o2switch review](https://www.wp-feint.com/o2switch-wordpress-hosting-review/)). **Hostinger** offers a migration request in hPanel, using the site’s WordPress login or backup files; its documentation states that email is not part of the migration and that you must disable two-factor authentication and anti-bot checks that would stop its team from logging in (see [our Hostinger review](https://www.wp-feint.com/hostinger-wordpress-hosting-review/)). **Kinsta** advertises free, unlimited migrations for standard WordPress installs. **SiteGround** provides the free SiteGround Migrator plugin: a token generated in Site Tools, and the site is copied with a temporary test address valid for 48 hours.\n\nRather than disabling your protections for the migration team, prefer the backup-file method when it exists, or create a temporary administrator account that you delete right after, giving the site’s real login address if you have moved it.\n\n### With a plugin\n\nAll-in-One WP Migration, Duplicator, WPvivid or Migrate Guru do the job without a command line; our [duplication guide](https://www.wp-feint.com/duplicate-wordpress-site/) compares their limits and prices. For a migration without an address change, Migrate Guru is the most comfortable on a large site: it copies from server to server without going through your computer.\n\n### The manual method\n\nWith SSH on both servers, the copy takes a few commands. Account names, database names and the IP address are examples.\n\n```\n# Old server: database and files\r\nmysqldump --single-transaction --default-character-set=utf8mb4 -u user -p dbname > site.sql\r\ntar -czf site.tar.gz -C /home/account/www .\r\n\r\n# New server: fetch, extract, import\r\nrsync -avz old:/home/account/site.sql old:/home/account/site.tar.gz ~/\r\ntar -xzf ~/site.tar.gz -C ~/www\r\ncd ~/www\r\nwp config set DB_NAME new_db\r\nwp config set DB_USER new_user\r\nwp config set DB_PASSWORD 'password'\r\nwp db import ~/site.sql\r\nwp rewrite flush\r\n\r\n# Only if the site address changes\r\nwp search-replace 'https://old-domain.com' 'https://new-domain.com' --skip-columns=guid --dry-run\n```\n\nWithout SSH, download the files over SFTP and export the database from phpMyAdmin, then import them the same way. Delete `site.sql` and the archive afterwards: they contain the whole database, hashed passwords included.\n\n## Test the new server before the switch\n\nYour computer’s `hosts` file lets you open the site on the new server, at its real address, while the rest of the world still sees the old one. Add a line with the new server’s IP address, then remove it after testing.\n\n```\n# Windows: C:\\Windows\\System32\\drivers\\etc\\hosts (editor run as administrator)\r\n# macOS and Linux: /etc/hosts\r\n203.0.113.10  example.com www.example.com\n```\n\n- Browse the key pages, log in, submit a form, place a test order.\n- The HTTPS certificate: Let’s Encrypt can only validate the domain once DNS points to the server. If the host does not offer early issuance, expect a few minutes without a valid certificate right after the switch, or use DNS validation.\n- Check that the server rules work: redirects, security headers, blocked paths.\n\n## The switch and post-migration checks\n\nFor a site that takes orders or comments, freeze content during the final sync: maintenance mode, fresh database export, import, then change the DNS records. Otherwise, orders placed on the old server during propagation will be lost. Check propagation with `dig +short www.example.com` or an online DNS checker.\n\n| Check | How | If it fails |\n| --- | --- | --- |\n| Pages and permalinks | Home, posts, deep pages | Save Settings, Permalinks; check .htaccess or the Nginx config |\n| Site emails | Form, lost password, order | SMTP, SPF and DKIM records for the new server |\n| Scheduled tasks | Backups, scheduled posts | Recreate the server cron jobs |\n| Payments | Test order, webhooks | Update webhook URLs if the domain changes |\n| Permissions | Upload an image, update a plugin | Fix owner and permissions ([644 and 755](https://www.wp-feint.com/wordpress-file-permissions/)) |\n| CDN and proxy | Cloudflare or another in front of the site | Change the origin address, purge the cache |\n\n*The checks to run in the hours after the switch.*\n\n## SEO: same address or new domain\n\n**Same address**: changing host without changing URLs requires no declaration to Google. Just watch the Search Console crawl stats over the following days: a rise in server errors or response times points to a configuration problem. A faster server may even improve Core Web Vitals.\n\n**New domain**: this is a change of address, far more sensitive. Every old URL must point with a [301 redirect](https://www.wp-feint.com/glossary/301-redirect/) to its new equivalent (not everything to the home page). Then declare the move with Search Console’s Change of Address tool, which requires you to own both properties. Google advises keeping the redirects for at least 180 days, and keeping the old domain registered for at least a year. Moving from HTTP to HTTPS or between the www and non-www versions does not use this tool.\n\n## The rollback plan\n\n- Do not cancel the old hosting before a week of normal operation, and check its renewal date before you start.\n- Write down the old DNS values: with a 300-second TTL, rolling back takes a few minutes.\n- Decide in advance the rollback threshold (site down for more than an hour, failing payments) and who makes the call.\n- After a rollback, orders and sign-ups received on the new server must be carried over by hand.\n\n## WP Feint after a change of host\n\nWP Feint’s settings live in the database and follow the site. What depends on the server must be reviewed.\n\n- **Apache and LiteSpeed to Nginx**: Nginx ignores `.htaccess` files. The plugin folder is then no longer hidden by its own file: add the rule given in the documentation to the server configuration. Pro’s file aliases and any `.htaccess` blocks must also be translated into Nginx rules (see protecting wp-admin at server level).\n- **Site path changed**: if the site moves from a subfolder to the root, or the other way round, Pro’s alias block contains the old path. Paste the block generated by the “File addresses” tab again, then run “Verify and activate”.\n- **Login address**: the secret address does not change. After the switch, open it in a private window, check that `wp-login.php` still returns 404 and purge the new host’s cache, which may have kept an old response.\n- **Pro licence**: it is tied to the site’s address. With the same address, simply check its status in the plugin after the switch. With a new domain, move the licence to the new address from your member area; details are on the [pricing](https://www.wp-feint.com/pricing/) page.\n\nThe [host and cache compatibility](https://www.wp-feint.com/features/hosting-and-cache-compatibility/) page details the settings per server and per cache. WP Feint neither migrates nor backs up the site: use one of the methods above for that.\n\n*“How to Migrate a WordPress Site to a New Host | 3 Easy Methods”, by Hostinger Academy: the control panel, plugin and manual methods shown side by side, to see which one suits your site.*\n\n## Frequently asked questions\n\n**How long does a WordPress site migration take?**\n\nThe copy takes from a few minutes to a few hours depending on size. Mostly plan for the preparation (TTL lowered 24 to 48 hours before) and a week of checks before cancelling the old hosting.\n\n**Will the site go down during the migration?**\n\nNo, if the new server is ready and tested before the DNS switch: visitors move from the old server to the new one without interruption. Only a site that takes orders needs to freeze content during the final sync.\n\n**Should I transfer the domain name at the same time?**\n\nNo. The domain can stay with its registrar: you only change its DNS records. Transferring the domain at the same time adds a source of error; do it later if you wish.\n\n**Does a migration hurt SEO?**\n\nNot if the addresses stay the same. With a new domain, page-by-page 301 redirects and Search Console’s Change of Address tool limit the loss, which remains temporary when everything is in place.\n\n**What happens to my domain’s email?**\n\nIf it was hosted by the old host, recreate the mailboxes at the new one, copy the messages, then change the MX records. Hosts’ migration services do not always include email.\n\n### Key takeaways\n\n- Lower the TTL 24 to 48 hours before, test the new server through the hosts file, switch DNS last.\n- List what is not inside WordPress: full DNS zone, email, cron jobs, server rules, certificate.\n- The host’s migration service is often free: it is the first choice.\n- Same address: nothing to declare to Google. New domain: page-by-page 301s and the Change of Address tool.\n- Keep the old hosting for a week; moving to Nginx means carrying WP Feint’s rules into the server configuration.\n\n## New server, same protections\n\nWP Feint works on Apache, LiteSpeed and Nginx: the free version moves the login, blocks XML-RPC and hides WordPress; Pro adds two-factor authentication, login limiting and alerts about vulnerable plugins.\n\n[Download the free version](https://www.wp-feint.com/download/)\n\n[See Pro pricing](https://www.wp-feint.com/pricing/)\n\n## Sources\n\n- WordPress Developer: moving WordPress (https://developer.wordpress.org/advanced-administration/upgrade/migrating/)\n- Google Search Console: Change of Address tool (https://support.google.com/webmasters/answer/9370220)\n- Hostinger: migrate a website (https://docs.hostinger.com/websites/migrate-website)\n- Kinsta: WordPress migrations (https://kinsta.com/docs/wordpress-hosting/migrations/)",
    "categories": [
        "WordPress guides"
    ],
    "format": "application/json"
}