So you have decided to move your WordPress blog to a new domain. Maybe your old domain name no longer fits your brand. Maybe you bought a shorter, catchier name. Or perhaps you are switching from a free subdomain like yourblog.wordpress.com to your very own custom domain. Whatever the reason, the good news is: you can do this yourself, even if you are not a technical person.
This guide will walk you through every single step of the process in plain, simple language. We will cover what to do before you start, how to move your content, how to handle redirects, what happens to your SEO, and much more. By the end, you will have a clear picture of how to transfer your WordPress blog to a new domain without losing your hard work.
Let us dive right in.
Table Of Contents
1. Understanding What a Domain Transfer Actually Means
Before jumping into steps, it helps to understand what is actually happening when you transfer a WordPress blog to a new domain.
Your domain name is like your blog’s home address on the internet. Your hosting server is the actual house where all your content lives. When you transfer to a new domain, you are not moving the house. You are changing the address that points to it, and making sure your content knows about the new address too.
There are two common situations people face:
- Keeping the same hosting but changing the domain name only.
- Moving to a completely new hosting provider AND a new domain at the same time.
Both situations require slightly different approaches, but the core process remains the same. This guide covers both. We will also explain how to keep your search engine rankings as safe as possible during the move.
2. Things to Do Before You Start the Transfer
Rushing into a domain migration without preparation is one of the most common mistakes bloggers make. A little preparation now can save you hours of headaches later. Here is what to do first.
2.1 Back Up Your Entire WordPress Blog
This is the most important step of all. Before you touch anything, create a complete backup of your website. A backup includes your WordPress database (which holds all your posts, pages, comments, and settings) and your files (which include your themes, plugins, images, and uploads).
You can back up using a plugin. Two of the most popular free options are:
- UpdraftPlus: Easy to use, stores backups on Google Drive, Dropbox, or your computer.
- All-in-One WP Migration: Great for beginners, creates a single export file with everything inside.
Once your backup is safely stored somewhere outside your website (such as your personal computer or cloud storage), you are ready to move on.
2.2 Register or Prepare Your New Domain
Make sure you have already purchased your new domain name from a domain registrar. Popular registrars include Namecheap, GoDaddy, Google Domains, and Porkbun. Your new domain should be active and pointing to your hosting server before you proceed.
If you are moving to a new hosting provider as well, sign up for that hosting plan first. Make sure the new hosting account is set up and ready before you start moving files.
2.3 Write Down Your Current WordPress Settings
Log in to your WordPress dashboard and go to Settings, then General. Write down the values in the WordPress Address (URL) and Site Address (URL) fields. These currently show your old domain. You will need to change these later. Knowing your starting point helps you keep track of where you are in the process.
Also take note of any special plugins, themes, or custom settings you have. If something breaks after the migration, you will want to remember how things were set up originally.
2.4 Set Your Blog to Maintenance Mode (Optional but Helpful)
If visitors arrive at your blog while you are in the middle of a migration, they might see broken pages or errors. To prevent a bad experience, you can use a maintenance mode plugin like WP Maintenance Mode to temporarily show a friendly message while you work behind the scenes. This step is optional, but it is a good habit when making big changes to your site.
3. How to Transfer Your WordPress Blog to a New Domain (Step-by-Step)
Now we get into the main process. We will cover the two most common methods: using a migration plugin (recommended for beginners) and doing it manually (for those who want full control).
Method A: Using a Migration Plugin (Easiest Way)
This is the recommended method for most bloggers. It requires no coding knowledge and handles most of the complex work for you.
Step 1: Install the All-in-One WP Migration Plugin on Your Old Site
In your WordPress dashboard, go to Plugins, click Add New, and search for “All-in-One WP Migration.” Install and activate it. This plugin is free and highly trusted in the WordPress community.
Step 2: Export Your Site
Once the plugin is active, look for “All-in-One WP Migration” in the left sidebar of your dashboard. Click on it, then click “Export.” You will see an option to export to a file. Click that, and the plugin will package everything, including your database, themes, plugins, and media files, into a single downloadable file with a .wpress extension.
Download this file and save it on your computer. Depending on the size of your blog, this could take a few minutes.
Step 3: Set Up a Fresh WordPress Install on Your New Domain
Go to your new domain’s hosting account. Most web hosts like Bluehost, SiteGround, Hostinger, or WP Engine offer a one-click WordPress installation. Use that to install a clean, empty version of WordPress on your new domain.
Once installed, log in to this new WordPress dashboard. It will be empty for now. That is expected.
Step 4: Install the Same Migration Plugin on Your New Site
Repeat the same process on your new WordPress installation. Install and activate the All-in-One WP Migration plugin.
Step 5: Import Your Old Site into the New Domain
In your new WordPress dashboard, click on All-in-One WP Migration in the sidebar, then click “Import.” Upload the .wpress file you downloaded in Step 2. The plugin will automatically replace the new empty site with all your old content, settings, themes, and plugins.
Important: If your backup file is larger than 512 MB, the free version of the plugin may have an upload limit. You can increase this limit by installing the “All-in-One WP Migration File Extension” (a free add-on), or switch to Method B below for large sites.
Step 6: Update the WordPress Site URL
After the import completes, the plugin will prompt you to save your permalinks. Do that. Then go to Settings, then General, and make sure both the WordPress Address and Site Address are showing your NEW domain name. If they still show the old domain, update them manually and save.
You have now successfully moved your content to the new domain using the plugin method. Continue to Section 4 for the critical steps that follow.
Method B: Manual Migration (For Advanced Users or Large Sites)
If your site is large, or if you prefer more control, the manual method is a solid choice. This involves exporting your database, moving your files via FTP, and updating URLs in the database.
Step 1: Export Your WordPress Database
Log in to your old hosting account’s control panel (usually cPanel). Look for phpMyAdmin. This is the tool that manages your database. Click on your WordPress database on the left panel, then click the “Export” tab at the top. Choose “Quick” export and the SQL format, then click Go. This downloads a .sql file to your computer.
Step 2: Copy Your WordPress Files Using FTP
Download a free FTP client like FileZilla. Connect it to your old hosting server using the FTP credentials provided by your host. Navigate to your WordPress installation folder (usually called public_html or www). Download all the files inside this folder to your computer.
Once downloaded, connect FileZilla to your NEW hosting server and upload all those files to the appropriate folder on the new server.
Step 3: Create a New Database on Your New Host
In your new hosting control panel, go to MySQL Databases and create a new database. Also create a new database user and assign it to the database with full permissions. Write down the database name, username, and password. You will need these shortly.
Step 4: Import Your Database to the New Server
Open phpMyAdmin on your new hosting account. Select the new database you just created. Click the Import tab, choose the .sql file you downloaded earlier, and click Go. Your database content will now be loaded into the new server.
Step 5: Edit the wp-config.php File
In the files you uploaded to your new server, find a file called wp-config.php. Open it with a text editor. Look for these three lines:
- DB_NAME: Change this to your new database name.
- DB_USER: Change this to your new database username.
- DB_PASSWORD: Change this to your new database password.
Save the file and re-upload it to the new server, replacing the old version.
Step 6: Update the URLs in Your Database
Your database still contains references to your old domain name in hundreds of places. You need to replace all of those with the new domain. The safest way to do this is using a free tool called Better Search Replace (available as a WordPress plugin).
Install and activate Better Search Replace on your new WordPress site. Then go to Tools, then Better Search Replace. In the “Search for” field, type your old domain (for example, https://olddomain.com). In the “Replace with” field, type your new domain (for example, https://newdomain.com). Select all tables, and make sure “Run as dry run” is checked first to preview what will change. Once you confirm it looks correct, uncheck dry run and click Run Search/Replace.
This process updates every internal link, image path, and setting in your database to reflect the new domain.
4. Setting Up Redirects from Your Old Domain to the New One
This is one of the most critical steps in the entire process, and it is often the one that people skip. Do not make that mistake.
A redirect tells anyone who visits your old domain to automatically go to the new domain instead. This is important for two reasons:
- Visitors who bookmarked your old site or found it via a link will still reach you.
- Search engines like Google will be told that your site has moved permanently, which helps preserve your SEO rankings.
The type of redirect you need is called a 301 redirect. The number 301 is a standard web code that means “this page has moved permanently.” It is the gold standard for domain migrations.
How to Set Up a 301 Redirect via .htaccess
If your old hosting uses Apache (which is very common), you can set up redirects by editing a file called .htaccess in the root folder of your old website.
Using FTP or your hosting file manager, open the .htaccess file. At the very top of the file, add these two lines:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)$ https://www.newdomain.com/$1 [R=301,L]
Replace newdomain.com with your actual new domain. Save the file. Now, anyone who visits your old domain will automatically land on your new one.
How to Set Up Redirects Using a WordPress Plugin
If editing .htaccess feels intimidating, you can use a plugin instead. The Redirection plugin is one of the most popular options. Install it on your OLD WordPress site, then go to Tools, Redirection. Add a new redirect where the source URL is your old domain path and the target URL is the new domain. The plugin handles the rest.
Keep your old domain active and pointing to your old hosting for at least six to twelve months after the migration. This gives search engines enough time to fully update their records with your new domain.
5. How the Domain Transfer Affects Your SEO (And How to Protect It)
One of the biggest worries bloggers have about moving to a new domain is losing their position in search engine results. This concern is completely valid. A domain migration does affect SEO, but if you handle it correctly, the impact can be minimized significantly.
What to Expect After the Migration
Even with 301 redirects in place, it is normal to see a temporary dip in your search rankings. This is not permanent. Google and other search engines need time to crawl your new domain, index your pages, and transfer the authority from your old domain. This process usually takes a few weeks to a few months.
Do not panic if your traffic drops slightly right after the migration. As long as your 301 redirects are in place and your new site is properly set up, your rankings should recover and eventually stabilize.
Submit Your New Domain to Google Search Console
Google Search Console is a free tool from Google that helps you manage your site’s presence in search results. After your migration, you should:
- Add your new domain as a new property in Google Search Console.
- Verify ownership by following Google’s verification steps.
- Use the “Change of Address” tool in Search Console to inform Google officially that your site has moved.
- Submit a new sitemap for the new domain.
This step is very important. It directly tells Google that your domain has officially changed, which speeds up the process of transferring your search authority to the new domain.
Update Your XML Sitemap
A sitemap is a file that lists all the pages on your website. It helps search engines find and index your content. After your migration, generate a fresh sitemap that contains your new domain URLs.
If you use the Yoast SEO plugin or Rank Math, sitemaps are generated automatically. Just make sure the plugin is active on your new domain site and the sitemap URL (usually yourdomain.com/sitemap.xml) is submitted to Google Search Console.
Update Your Backlinks Where Possible
Backlinks are links from other websites that point to yours. They are very valuable for SEO. After moving domains, try to update as many of these as possible.
- Check your social media profiles and update the website URL.
- Update any guest posts or directories where your old domain was listed.
- Contact website owners who link to you and ask them to update their links.
You cannot update every backlink, but the more you update, the stronger your new domain’s authority will be right from the start.
6. Updating Internal Links, Images, and Embedded Media
Even after migrating your content and setting up redirects, your blog posts and pages may still contain links and image paths that reference your old domain. These are called hardcoded links.
For example, if you wrote a blog post that links to another post on your site using the full URL like https://olddomain.com/post-title, that link will still work because of your redirect. But it is better practice to update it to https://newdomain.com/post-title so your site is clean and self-contained.
If you used the Better Search Replace plugin during the manual migration process (see Section 3, Method B), this should already be handled. If not, install and use the plugin now to do a database-wide search and replace of your old domain with the new one.
After running the replacement, browse your most important pages and check that images load correctly, links work, and no broken content is visible. Pay special attention to your homepage, most-visited posts, and any page that embeds external media.
7. What to Check After the Migration is Complete
After transferring your WordPress blog to a new domain, go through this checklist to make sure everything is working properly.
Post-Migration Checklist
- Visit your new domain in a browser and confirm it loads correctly.
- Log in to your new WordPress dashboard to make sure admin access works.
- Check that your homepage, blog archive, and individual posts all load without errors.
- Verify that images and media files are displaying correctly.
- Click through your main menu links and make sure they all point to the new domain.
- Test your contact form to make sure it still sends emails correctly.
- Visit your old domain and confirm it redirects to the new one.
- Check that your SSL certificate is working on the new domain (the padlock should show in the browser). Most hosts offer free SSL through Let’s Encrypt.
- Reactivate and test all your plugins on the new site.
- Verify Google Analytics or any other tracking tools are still recording traffic.
8. Special Situations: Moving from WordPress.com to a Custom Domain
Many bloggers start out on WordPress.com, which is the free hosted version. If you want to move your blog from yourblog.wordpress.com to your own domain like yourblog.com, the process is slightly different.
WordPress.com and WordPress.org are different platforms. WordPress.com hosts your blog for you on their servers, while WordPress.org is the self-hosted version where you control everything. When moving from WordPress.com to self-hosted WordPress.org, you are essentially upgrading your blogging setup.
Steps to Move from WordPress.com to a Self-Hosted Blog
- Purchase a domain name and a hosting plan from a provider like Hostinger, Bluehost, or SiteGround.
- Install WordPress on your new hosting account.
- On your WordPress.com site, go to Tools and then Export. Download the export file, which is an XML format containing all your posts, pages, and comments.
- On your new WordPress.org site, go to Tools, then Import. Install the WordPress importer and upload the XML file.
- Reinstall your theme and plugins on the new site.
- On WordPress.com, you can purchase a Site Redirect upgrade, which automatically redirects all your old WordPress.com visitors to your new domain. This is the easiest way to handle redirects in this scenario.
9. Common Mistakes to Avoid During a WordPress Domain Transfer
Knowing what not to do is just as important as knowing what to do. Here are the most common mistakes bloggers make during a domain migration, and how to avoid them.
Not Making a Backup First
We mentioned this earlier, but it deserves repeating. Skipping the backup is the number one mistake. If something goes wrong midway through the migration and you have no backup, you could lose everything. Always back up before you begin.
Forgetting to Set Up Redirects
Moving to a new domain without setting up 301 redirects means all your existing backlinks, bookmarks, and search engine index entries become dead ends. This leads to traffic loss and SEO damage that can take months to recover from. Always set up redirects.
Not Informing Google Search Console
Many bloggers forget to use Google Search Console’s Change of Address tool. Without this notification, Google takes longer to recognize the move, which can delay the transfer of your SEO authority to the new domain.
Letting the Old Domain Expire Too Soon
If you let your old domain expire quickly, your redirects disappear and all the SEO value you built on that domain is gone. Keep paying for the old domain and hosting for at least a year after the migration to protect your rankings and redirect traffic properly.
Changing Too Many Things at Once
Some bloggers decide to change their domain name, redesign their theme, restructure their content, and switch hosting all at the same time. This makes it nearly impossible to figure out what caused a problem if something goes wrong. Move domains first. Once everything is stable, then make other changes.
10. How Long Does a WordPress Domain Transfer Take?
The actual technical process of moving a WordPress blog to a new domain can take anywhere from one to four hours for most beginners, depending on the size of your blog and which method you use.
However, the full impact of the migration plays out over a longer period:
- DNS propagation (the process of updating domain records across the internet) can take anywhere from a few hours to 48 hours.
- Google and other search engines may take a few weeks to crawl and re-index your new domain.
- Full SEO recovery and authority transfer typically takes one to three months.
Patience is an important part of the process. Do not expect everything to be perfect on day one. Monitor your Google Search Console reports regularly in the weeks following the migration so you can spot and fix any crawl errors or missing pages quickly.
11. Tools That Make WordPress Domain Migration Easier
Here is a summary of the most useful tools mentioned throughout this guide:
- All-in-One WP Migration: The easiest plugin for beginners to export and import an entire WordPress site.
- UpdraftPlus: A powerful backup plugin with cloud storage support.
- Better Search Replace: A database tool that finds and replaces your old domain URL with the new one across the entire WordPress database.
- FileZilla: A free FTP client for transferring files between your computer and your server.
- Redirection (plugin): Lets you set up 301 redirects without touching code.
- Google Search Console: Google’s free tool for monitoring your site’s presence in search, submitting sitemaps, and notifying Google of a domain change.
- Yoast SEO or Rank Math: SEO plugins that automatically generate and manage your sitemap.
12. Frequently Asked Questions
Will I lose my blog posts when I change my domain?
No. Your blog posts, pages, comments, and media files are stored in your WordPress database and on your server, not in your domain name. When you transfer your blog to a new domain correctly, all your content moves with it. Your domain is just the address that points people to your content.
Do I need to buy new hosting if I change my domain?
Not necessarily. If you are happy with your current host, you can simply update the domain that points to it. You only need new hosting if you are also switching providers.
Will changing my domain hurt my Google rankings?
There can be a temporary drop in rankings during the transition period. However, if you set up 301 redirects properly and notify Google Search Console, your rankings should recover over time. Many bloggers who made the move correctly report that their rankings returned to normal within one to three months.
What happens to my email if my domain changes?
If you use a custom email address linked to your old domain (like [email protected]), that email address will stop working once the old domain is no longer active. You will need to set up a new email address on your new domain and inform your contacts about the change.
Can I transfer my domain to a new registrar at the same time?
Technically yes, but it is not recommended to do everything at once. Migrate your WordPress content first and make sure everything works. Then, once your new site is stable, you can consider moving your domain registration to a different registrar if needed.
Conclusion
Transferring your WordPress blog to a new domain is not as scary as it might seem. With the right preparation and the right tools, even a beginner can complete a successful migration without losing content or traffic.
Let us recap the key points:
- Always back up your site before you begin.
- Use a migration plugin for simplicity, or go manual for full control.
- Set up 301 redirects from your old domain to your new one.
- Notify Google Search Console about the domain change.
- Update all your internal links, social profiles, and trackable URLs.
- Be patient. SEO recovery takes time.
Follow the steps in this guide carefully, check your work thoroughly, and do not rush. Your blog will be up and running on its shiny new domain before you know it.
Good luck with your migration, and congratulations on taking your blog to the next level!
About the Author
Jay Patel is the Founder of XSquareSEO, a full-service SEO agency with experience in on-page SEO, eCommerce SEO, link building, technical SEO, SaaS SEO, and local SEO. For more information, feel free to contact us.
Explore More Guides
Disable WP Cron Jobs
WP Tags Social Media
Duplicate WP Hostinger
FAQ Schema Elementor WP
Fix WP Critical Error
WP Form Alerts
WP Admin Email Security
Hide WP Admin Bar
Hide WP Site Editing
Change WP Fonts
