Move wordpress site to new domain manually
A brave endeavor! Moving a WordPress site to a new domain manually requires some technical expertise, but I'll guide you through the process. Please note that this is a general outline, and you may need to adapt it to your specific situation.
Before you start:
- Backup your site: Create a complete backup of your WordPress site, including the database and files, using a plugin like UpdraftPlus or Duplicator.
- Update your DNS: Update your domain's DNS settings to point to the new domain. This may take some time to propagate.
- Verify your new domain: Ensure your new domain is registered and verified with your registrar.
Step 1: Update 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
, respectively. - Click Save Changes.
Step 2: Update database
-
Use a tool like phpMyAdmin or a database management plugin to access your WordPress database.
-
Update the
site_url
andhome_url
fields in thewp_options
table to reflect the new domain. You can use the following SQL queries:UPDATE wp_options SET option_value = 'https://newsite.com' WHERE option_name = 'site_url'; UPDATE wp_options SET option_value = 'https://newsite.com' WHERE option_name = 'home_url';
-
Update the
url
field in thewp_posts
table to reflect the new domain. You can use the following SQL query:UPDATE wp_posts SET post_content = REPLACE(post_content, 'oldsite.com', 'newsite.com');
Step 3: Update file paths
-
Update the
wp-config.php
file to reflect the new domain. You can do this by adding the following lines at the top of the file:define('WP_HOME', 'https://newsite.com'); define('WP_SITEURL', 'https://newsite.com');
-
Update the
wp-content/uploads
directory to reflect the new domain. You can do this by renaming the directory tonewsite.com
and updating thewp-config.php
file to reflect the new directory path.
Step 4: Update plugins and themes
- Update any plugins and themes that reference the old domain. You can do this by searching for occurrences of the old domain in the plugin and theme files and updating them to reflect the new domain.
Step 5: Update DNS and verify
- Update your DNS settings to point to the new domain.
- Verify that your new domain is working correctly by accessing your site and checking that all links and images are loading correctly.
Step 6: Update search engine listings
- Update your site's search engine listings (e.g., Google Search Console, Bing Webmaster Tools) to reflect the new domain.
Step 7: Monitor and test
- Monitor your site's performance and functionality to ensure everything is working correctly.
- Test your site's links, images, and other elements to ensure they are loading correctly.
By following these steps, you should be able to manually move your WordPress site to a new domain. Remember to be patient and thorough, as this process can be time-consuming and requires attention to detail.