Migrate wordpress to a new domain
Migrating a WordPress site to a new domain can be a bit of a process, but it's definitely doable. Here's a step-by-step guide to help you through the process:
Before you start:
- Backup your site: Before making any changes, make sure to backup your WordPress site using a plugin like UpdraftPlus or Duplicator.
- Update your DNS: Update your DNS settings to point to the new domain. This may take some time to propagate, so be patient.
- Check your hosting: Make sure your hosting provider allows you to migrate your site to a new domain. Some providers may have specific requirements or restrictions.
Step 1: Update your WordPress configuration
- Log in to your WordPress dashboard and go to Settings > General.
- Update the WordPress Address and Site Address fields to reflect the new domain. For example, if your old domain was
oldsite.com
and your new domain isnewsite.com
, update the fields tohttps://newsite.com
andhttps://newsite.com
. - Click Save Changes.
Step 2: Update your database
- Use a plugin like WP Migrate DB or Duplicator to migrate your database to the new domain. These plugins can help you transfer your database and update the URLs to reflect the new domain.
- Alternatively, you can manually update your database by exporting your database from your old site and importing it into your new site. You'll need to update the URLs in your database tables using a tool like phpMyAdmin.
Step 3: Update your files
- Use an FTP client like FileZilla to connect to your new site's file system.
- Upload your WordPress files to the new site's file system, overwriting any existing files.
- Update the URLs in your theme files and plugins to reflect the new domain.
Step 4: Update your permalinks
- Log in to your WordPress dashboard and go to Settings > Permalinks.
- Click Save Changes to update your permalinks.
Step 5: Update your plugins and themes
- Update your plugins and themes to ensure they're compatible with the new domain.
- Check for any plugin or theme updates that may be required.
Step 6: Test your site
- Test your site to ensure everything is working as expected.
- Check for any broken links or images.
- Test your site's functionality, including forms, e-commerce integrations, and other features.
Step 7: Update your DNS
- Once you've verified that your site is working correctly, update your DNS settings to point to the new domain.
- This may take some time to propagate, so be patient.
That's it! With these steps, you should be able to successfully migrate your WordPress site to a new domain.