moving-wp-site-to-new-host
Home » BLOG » WordPress » How to Move WordPress site to a New Host without Plugin

How to Move WordPress site to a New Host without Plugin

category:  WordPress

You have a website and it has been working great on your host. However, It may have a time that you want to change the host with various reason. For my case, I change the host for better performance and build up my SEO ranking. Check it out two hosting below. You may want to host your website or your client site there.

Best WordPress Hosting

general EN wordpress leaderboard blue

One is SiteGround which is a powerful WordPress hosting recommended by WooCommerce plugin, WordPress.org and Yoast SEO plugin. SiteGround provides BEST hosting support that available 24/7 and extremely fast response.

InterServer Web Hosting and VPS

Another one is InterServer which is a budget web hosting but the performance is not a joke. InterServer offers built-in security server and fast support 24/7. With $4/month, you wont’ find this deal anywhere else. Plus, InterServer promises the price look guarantee. Renew price is the same price you pay forever.

I personally use many web hostings since I have to find the right web hosting for my clients and my own websites as well. Apart from SiteGround and InterSever, Kinsta is a another level up of web hosting for highly performance and highly secured server. I choose Kinsta for my serious clients such as hospital. Check all three hosts and see which one fits your needs best.

For WordPress site migration, there are two ways that you can move the WordPress website to the new host. One is using the plugins and another is using PhpMyAdmin or other MySQL interface application(SQLyog). In this post, I gonna talk about moving the site without the plugins. I assume that you already have the new domain name or using the current domain name. Also, you already have the new host login (cPanel).

Moving WordPress site without plugin

In order to move the WordPress site smoothly, follow these steps below.

  • Export the database from the phpmyadmin at the current host
  • Create a new database at the new host
  • Import the imported database into the new host
  • Now changing the domain name at the new database via phpmyadmin
    • For Single site
      • wp_options table, find the option_name fields below:
        • siteurl => https://domain-name.com
        • home => https://domain-name.com
    • For Multi-sites
      • wp_options table, find the option_name fields below:
        • siteurl => https://domain-name.com
        • home => https://domain-name.com
      • wp_n_options table, find the option_name fields below (n is the number of mini-sites):
        • siteurl => https://domain-name.com
        • home => https://domain-name.com
      • wp_blogs table, find the domain field and change it to your domain name without http:// or https://
      • wp_site table, find the domain field and change it to your domain name without http:// or https://
      • wp_sitemeta, find the meta_key field and change it to your domain name with http:// or https://
  • Transfer all WordPress files from the current host to the new host
  • At the new host, visiting the WP login at https://example.com/wp-login.php
  • Log in and go to Settings then Permalinks and just save it twice without any changes in order to flush the URLs for the site on the new host
  • Now your site should work on the new host

How about GUID? - database migration option

In wp_posts table, you will see the “guid” column. The GUID stands for “Globally Unique Indentifier”. It is a field that is intended to hold an identifier for the post which is unique. Ideally, you should not change this GUID. The GUID field is primarily used to create the WordPress feeds. However, if you never use the WordPress feeds, you may ignore GUID.

Regarding the method above, the GUID won’t change to a new domain name if the domain name is different from the old site. For example, you are moving the site from www.example.com to www.example.net. When you are moving the site using the method above, the GUID won’t change to www.example.net.

To fix it, you should migrate the database using the WP Migrate DB plugin instead of export and import the database directly via phpmyadmin. I often use the WP Migrate DB plugin for migrating the site including GUID. It is working well all the time.

Moving WordPress site with plugin

If you don’t want to wait time and don’t feel comfortable with the manually moving site, you can follow “How to move your WordPress site with zero downtime”.

Conclusion

Moving WordPress site to new host is not too complicated. The main issue you have to focus is URL. If you are moving WordPress site from old domain name to new domain name, you want to make sure you replace all URLs with the new domain name and no URLS refers to the old domain name. Moving WordPress multisite can be tricky. But if you understand the multisite structure, it won’t be difficult for you.

Lastly, choose the right web hosting is important too. I recommend all three hosts above because I am been using them so many years and they never let me down. Those hosts offers Free migration with WordPress experts.