What's WP
Our everything is about WordPress - best choice of WordPress users!
How to Transfer WordPress to a New Domain?

How to Transfer WordPress to a New Domain?

There are times that some customers need to change their WordPress sites’ domains to a new domain names, and we have also received many customers’ emails asking about how to transfer WordPress sites to the new domain names. In this article, we introduce the 10 steps carefully, to guide customers step by step based on our real operations. Indeed, the steps are simple, but they have to be taken in the right order to make sure you do not hurt your visitors and search engines.

  1. Create a new TXT file named robots.txt, and write in the following content:
    User-agent: *
    Disallow:/
    Put this file on the new domain name.
  2. Copy the database and files of the website, and put them on the new domain.
  3. Change the database configuration to make sure it matches the original database settings. Add the following codes and replace the whatswp.com with your new domain name.

    define(‘WP_SITEURL’, ‘https://whatswp.com’);
    define(‘WP_HOME’, ‘https://whatswp.com’);

  4. At present, you can set up your website, configure it with the same settings as on the old domain. Note that, if you have a caching plugin installed, you need to delete the cache files.
  5. Then, you need to change your old URLs to the new URLs. You can install the Search and Replace plugin to find the old URL strings in the database and replace them with the new URLs.

    Download website: http://wordpress.org/plugins/search-and-replace/

  6. At this point, the main work has been completed, you need to check whether all the steps done correctly again.
  7. If you are fully sure that all steps have been completed correctly, you can remove the robost.txt file.
  8. You have been transferred your website to a completely new domain name. However, your visitors and the search engines don’t know it. So you need to let Google and the other search engines know you have moved. Usually within a week, depending on the search engine, they will have gone through and updated their index with the new domain URL’s. This step is important to keep your users and website rankings in the search engines, and it’s also easy to make. You just need to add the following code into your apache .htaccess or host-configure file on your old blog.

    Redirect 301 /blog/ http://www.newdomain.com/

  9. Now, you can rest assured to remove the old blog code and database. You have a completely new blog with the same content but new domain name. If you have a FeedBurner account, change it to pick up the correct feeds.

So, you have simply finished the entire process of moving your WordPress website to a new domain. You can browse your new domain in the Google to check whether everything is ok.

Author

Joyce is a professional writer & SEOer who loves trying new things and sharing the experience through blogging. She loves clean design, playing with different WordPress themes, SEO, etc. Now she is very struggle with purchasing a bubbling apartment in downtown. You can help her by clicking our ADs or making a purchase via our links ;-)

Close

Want to Learn More About WordPress?

Get Our Free Themes, Plugins, Support, SEO Tips, and Other Tutorials!

Email *