Themewaves
How-To

How to Copy a WordPress Site to a New Home

Move a WordPress site with less risk, from backup to final testing.

How to Copy a WordPress Site to a New Home

What Copying a WordPress Site Involves

To copy a WordPress site, transfer its files and database, update the site settings, then test every key feature. You can move a site to another domain, a new server, or localhost. The right method depends on your host, site size, and comfort with server tools.

A full copy includes more than posts and pages. It also includes themes, plugins, uploads, and database settings. Copying only the files or only the database leaves the site incomplete.

People copy sites to change hosts, build a staging site, or keep a backup. A staging copy lets you test updates away from the live site. A backup gives you a way to restore the site if a move goes wrong.

Keep the live site unchanged until the copy works. That gives you a safe fallback.

Choose a Copying Method

Red storage box beside dark drives representing WordPress migration methods
Ways to move a WordPress site

There are three common ways to move a WordPress site: use a migration plugin, copy files and the database by hand, or use tools from your host. Each method can work well when you follow its steps and keep a clean backup.

  • Migration plugin: Best for many small and mid-sized sites. The plugin bundles files and database data for transfer.
  • Manual transfer: Gives you more control. It suits users who can work with FTP, phpMyAdmin, and database settings.
  • Host migration tool: A good fit when your new host offers a supported move service or built-in tool.

Check the source and target site limits before you begin. Some hosts cap upload size or database size. A large media library may need a different method than a small blog.

For localhost, set up a local server tool first. Then import the site into its local web folder and database. For a new domain, make sure the domain points to the target host before switching visitors over.

WordPress also has official site migration guidance. It covers the core files, database, and URL changes that matter during a move.

Copy a Site with a Migration Plugin

Plugins such as Duplicator, All-in-One WP Migration, and UpdraftPlus can package or back up a site for transfer. Their exact steps differ, so follow the plugin’s current instructions. Start by making a fresh backup, then check that the archive or backup files are complete.

Install the chosen plugin on the source site and create its export. On the target site, install the matching tool or its required installer. Import the package, enter the new database details if asked, and let the tool update the site address.

Keep both sites available during the move. Do not delete the source until the new copy passes your checks. If the import stops, check the host’s file size and time limits before trying again.

Plugins make the process easier, but they do not remove the need for testing. Check forms, logins, images, and key pages on the copied site. Also clear any page cache before judging the result.

Pick a plugin that fits the job. For a staging copy, make sure it can keep the new site private while you work.

Copy a Site by Hand

A manual move has two main parts: move the files and move the database. First, use FTP or your host’s file tool to download the WordPress files. Include the wp-content folder, which holds themes, plugins, and uploads.

Next, export the source database through phpMyAdmin. Save the SQL file, create a database on the target host, and import the file there. Add the target database name, user, and password to the copied wp-config.php file.

Update the site address in the database if the domain changes. A simple search and replace can damage serialized data. WordPress plugins and themes may store settings with embedded data lengths, so use a tool that supports serialized data.

For a domain move, set the new address with a trusted migration tool or a WordPress-aware search-and-replace tool. Then check HTTPS settings and update DNS when you are ready to send visitors to the new host. DNS changes can take time to reach all networks.

Keep a copy of the original database and files until the move is stable. That makes it easier to undo a mistake.

Fix Common Copy Problems

A blank page or database error often points to a failed file transfer, a wrong database name, or a bad password. Compare the database details in wp-config.php with the target host settings. Re-upload any files that did not transfer fully.

Broken images and links often come from old domain paths. Check that the new site address is right, then run a safe search and replace. Avoid editing raw database values unless you know how serialized data is stored.

Redirect loops can happen when HTTPS settings differ between the old and new sites. Review the host’s SSL setup, WordPress address, and any redirect rules. Clear caching plugins such as W3 Total Cache after you change these settings.

If you copy a site to a subdomain, confirm that the subdomain has its own document root and database setup. For a staging copy, block public access while you test it. A password or host-level privacy setting can prevent search engines and visitors from seeing unfinished work.

Test the New Copy Before Launch

Red notebook and dark cable arranged for WordPress site checks after migration
Testing a copied WordPress site

Open the site on the target address and check both the home page and several inner pages. Test desktop and mobile views, then click links in the header, footer, and menus. Look for missing images, old domain links, and pages that return errors.

Test each feature that matters to the site. Submit a contact form, sign in to the admin area, and check search or checkout flows if you use them. Review key plugins and theme settings, since some store values tied to the old address.

  • Confirm that the home page and important pages load.
  • Check images, downloads, menus, and internal links.
  • Test forms, logins, and any payment steps.
  • Confirm HTTPS works and no old domain links remain.
  • Check that backups and caching tools work on the new host.

Once checks pass, update DNS or the site’s public address as needed. Keep the old site intact for a short review period. Watch for error reports and visitor issues after launch.

Best Practices for a Safe Move

Plan the move before changing the live site. Record the source and target addresses, database details, and any special server settings. Take a fresh backup right before the transfer, not days earlier.

Use a plugin for a straightforward move, or choose a manual transfer when you need tighter control. For large sites, ask the host about file limits and migration help before starting. Make one change at a time so you can trace problems quickly.

Do not copy someone else’s site without permission or valid access. If you need to copy a post in WordPress, use the editor’s duplicate feature or a trusted plugin, then review the copied draft before publishing. Moving an entire site is a different task from copying a single post or theme.

A careful backup, a clean transfer, and a full test are the core of a safe copy. Keep the source until the new site has proved itself.

Step-by-step

  1. 01
    Back up the source site

    Save a fresh copy of the files and database. Keep the original site in place until the new copy passes testing.

  2. 02
    Choose a transfer method

    Use a migration plugin, a manual file and database move, or a tool from your host. Check file and database limits before you start.

  3. 03
    Move files and database data

    Transfer the WordPress files and import the database to the target host or local server. Set the target database details in wp-config.php when needed.

  4. 04
    Update site settings and addresses

    Set the correct site address and use a WordPress-aware tool for domain changes. Confirm HTTPS and other host settings.

  5. 05
    Test the copied site

    Check pages, images, links, forms, logins, and any key features. Switch DNS or launch only after those checks pass.

Frequently asked questions

How do I copy a WordPress site to another domain?
Transfer the files and database, update the site address with a WordPress-aware tool, then test links and HTTPS. Change DNS only after the new copy works.
Can I copy a WordPress site to localhost?
Yes. Set up a local web server and database, import the files and database, then adjust the site address for the local environment.
What is the easiest way to copy a WordPress website?
A migration plugin is often easiest for a small or mid-sized site. Check host limits first and test the imported copy before launch.
Can I copy a WordPress site without access to its admin area?
You still need authorized access to the site files and database, or help from the site owner or host. Without those, you cannot make a complete and valid copy.
How do I copy a post in WordPress?
Use a duplicate-post feature or a trusted plugin to create a draft copy. Review its links, images, and content before publishing.
Why can serialized data break during a WordPress move?
Some database values include stored length counts. A basic text replacement can make those counts wrong, so use a tool that handles serialized data.
Share XFacebookWhatsApp

Related reading

About cookies on this site

Essential cookies keep pages loading and the enquiry form working. Anything beyond that is optional and we only set it if you say yes. Details live in our Cookie Policy.