how to move a wordpress site to a new domain

In the world of web development, a WordPress site can sometimes feel like a mythical creature, part content, part design, and part functionality, but wholly essential. Despite its modular nature, there is a complex air to moving a WordPress site to a new domain. It sutures a body of core files and a database to a new web address, both processes requiring careful handling to avoid broken links and lost data. A botched migration can menace your site's search engine standing and user experience for months. Getting it right is crucial.

A Step-by-Step Guide to Migrating Your WordPress Site

Moving your WordPress site doesn't have to be a monster of a task. With careful planning and the right approach, you can transfer your entire website to its new home without significant downtime or data loss. The key is to follow a methodical process. Before you begin anything, it is absolutely vital to create a complete backup of your website. This is your safety net. For a reliable method to secure your site's data, exploring a comprehensive guide on creating a full WordPress backup is an excellent first step.

Once your backup is secure, you can proceed with the migration. Here is a clear, step-by-step tutorial to guide you through the manual process.

  • Step 1: Prepare the New Domain: First, ensure your new domain is registered and pointed to your hosting account. You may need to set up a fresh WordPress installation on the new domain's directory, or you might be using a different folder on the same server.
  • Step 2: Export the Old Site's Database: Log into your old site's hosting control panel (like cPanel) and access phpMyAdmin. Select your site's database, click the Export tab, choose the Quick export method and SQL format, then click Go to download the file.
  • Step 3: Copy All WordPress Files: Using an FTP client (like FileZilla) or your hosting file manager, connect to your old site. Download every file and folder from the root directory (where wp-config.php is located) to your computer.
  • Step 4: Import Database to New Site: On your new hosting account, create a new database and user via the control panel. Then, open phpMyAdmin for the new domain, select the new database, click the Import tab, choose the SQL file you exported, and execute the import.
  • Step 5: Update wp-config.php: Among the files you downloaded, find the wp-config.php file. Open it in a text editor and update the database name, username, and password to match the new database credentials you just created.
  • Step 6: Upload Files to New Domain: Using FTP, upload all the files and folders from your computer to the root directory of your new domain. This will overwrite the fresh WordPress install if you made one.
  • Step 7: Update Site URL and Home: You now need to tell WordPress about its new address. You can do this by adding define('WP_HOME','http://yournewdomain.com'); and define('WP_SITEURL','http://yournewdomain.com'); to your wp-config.php file, or by using a search and replace tool on the database later for a more thorough update.
  • Step 8: Run a Search and Replace: Simply changing the site URL doesn't update old links within your posts and pages. Use a trusted plugin like "Better Search Replace" or a script to safely search for your old domain (e.g., http://olddomain.com) and replace it with your new one (e.g., http://newdomain.com) in the database.
  • Step 9: Check and Fix Permalinks: Log into your new site's WordPress admin dashboard. Go to Settings > Permalinks and simply click Save Changes to refresh the permalink structure. This often resolves 404 errors.
  • Step 10: Thoroughly Test Your New Site: Click through every page, test forms, check images load, and ensure all internal links work. Clear your browser cache and consider using a handy broken link checker tool to scan for any issues automatically.

What is the best plugin to move a WordPress site?

For many users, a dedicated migration plugin is the safest and fastest method. Plugins like Duplicator, All-in-One WP Migration, and Migrate Guru handle the technical steps—file transfer, database search-and-replace, and serialized data—automatically. They are ideal for those uncomfortable with manual database work. If you're looking to transition a web design project to a client, using a reliable plugin can make the handover process smooth and professional.

Your choice depends on site size and needs. Duplicator is powerful for large sites and offers scheduling. All-in-One WP Migration is famously user-friendly for standard sites. Migrate Guru, created by the team behind Wordfence, is excellent for very large sites and works directly with your hosting server. Always test the migrated site on the new domain before making it live.

Will moving my WordPress site affect SEO?

Yes, a domain change can significantly impact your SEO if not handled correctly. Search engines see the new domain as a completely different website, which can lead to a loss of rankings and traffic. The key is to properly inform search engines about the change. This involves setting up 301 redirects from every old page to its corresponding new page, which passes link equity.

You must also update your Google Search Console property to include the new domain and submit a change of address request. Consistently using the new domain in all external marketing and social profiles is also crucial. While a temporary dip is common, careful execution can help you recover and even improve your SEO over time.

How do I move my WordPress site without downtime?

Minimizing downtime is a top priority for business sites. The best strategy is to perform the migration on a staging site first. Many hosts offer one-click staging environments. You migrate your site to a staging area on the new server, test everything thoroughly, and then push it live with a single click, reducing public downtime to minutes. This approach is far safer than a live migration.

Another method is to use a "maintenance mode" plugin on your old site while you finalize the migration on the new server. Once the new site is ready, you quickly update your domain's nameservers (DNS). Because DNS propagation can take up to 48 hours, some visitors may see the old site and some the new during this period, but neither will see a broken page. For complex sites, understanding how WordPress hooks function can help ensure custom functionality transfers correctly without errors.

What are common issues after a WordPress migration?

Several common problems can arise post-migration. Broken images and links are frequent, caused by incorrect paths in the database. Mixed content warnings (HTTP/HTTPS issues) occur when some resources still load from the old, insecure URL. Login problems can stem from incorrect cookie paths or cached credentials. Plugin and theme functionality may break if they stored absolute paths.

Most issues are fixable. Use a search and replace tool for broken links. Force SSL in your wp-config.php file. Clear all caching at the server, plugin, and browser level. Deactivate and reactivate plugins. If you encounter persistent login issues, you may need to review or reset your WordPress user accounts directly in the database. Systematic testing is the best defense.

Can I move a WordPress site to a new host and domain at the same time?

Absolutely, moving to a new host and a new domain simultaneously is a standard procedure. The process is largely the same as moving to a new domain on the same host. The main difference is that in Step 1, you are setting up the new domain on an entirely different hosting provider's server. You will transfer all files via FTP between two different hosts and import your database into the new host's phpMyAdmin.

The critical step is the database search and replace, which must update all instances of your old domain name to the new one. After the migration, you will update your domain's nameservers to point to your new hosting provider. This combined move is a great time to evaluate if your new host offers better performance or tools, like the ability to build and test a WordPress site in a local offline environment before going live.

How can I test my site after migration?

Area to TestWhat to Check

Table of Contents

WordPress Speed Optimization

Boost your site performance and improve user experience with our specialized speed optimization service.

Accelerate Your Site
WordPress Speed Optimization
Previous Article Next Article
Chat with me

Start a Conversation

Hi! Let's connect on your preferred platform.

© 2026 All rights reserved.

Developed by WPutopia