How to switching hosting without downtime?


You want to move your site to new hosting without downtime? You want to test your site before update or upgrate to new version without error on current site? In this tutorial, Bien Thuy will help you. Let’s say you have 2 hosting accounts. Host A is current hosted your yourdomain.tld site. Host A’s IP address is Host B is new hosting and you want to move yourdomain.tld to. Host B’s IP address is
Now, Bien Thuy will guide you moving your site to new hosting without downtime. And in other case, for testing purpose, that mean you want to test site before you update or upgrade or do anything without take down or make error on current site, you can do the same way.Let’s start!
Step 1: Make a full backup of current site.
Step 2: Download your full backup to your computer.
Step 3: Change hosts file on your computer. For Windows users, please read How to edit hosts file on Windows. For MAC users, click How to edit hosts file on MAC. Enter IP address is Host B’s IP address. and domain is yourdomain.tld. For example, see picture below. I will testing on new server with IP address is (<– host B).

Edit hosts file

Edit hosts file

After you change your hosts file, Clear DNS on your computer, or some case, you have to restart your computer. And then, open web browser then type yourdomain.tld to see if it show contents on your new server or not. If it show contents on your new server, move to Step 4.
Step 4: Login to your new host and make sure new host setting yourdomain.tld is hosted domain. You can add yourdomain.tld on new host as addon or main domain. Use your new hosting (Host B) account and login, create new database information (if needed), upload your backup code to new host, reconfig database information in your config file (if needed) – for example Joomla code is configuration.php file, wordpress is wp-config.php file …
Step 5: Make sure all setting is correct and run yourdomain.tld. If you set up it correct, it will show you the same site as on old host. Now you can edit, update, upgrade or doing anything to yourdomain.tld. Any change now, only you see. All other computer access yourdomain.tld still see contents on your old hosting (Host A).
Step 6. After you’ve done edit, update or upgrade your site on new host (host B), and you sure it’s running without any error, you are satisfied with your changes, it’s time to edit your hosts file again, now just undo what you’ve edited (remove the line you insert – for example in my case is remove – from hosts file. Save hosts file and clear DNS cache. Run yourdomain.tld on your web browser again to see if it’s back to old host contents or not. If it is, go to step 7
Step 7. Go to your domain control panel and change your dns to new hosting dns server or point yourdomain.tld to your new hosting IP.
That’s it. If your site is a dynamic content with comments, forums or anything related to visitors, just close your site on old host before changing DNS. So, after changing DNS, you will know when your site is working on new host. If it’s still show close site, that’s mean old host. If it show your normal site, that’s mean it is running on new host.

How to switching hosting without downtime?
5 - 1187 vote[s]

Same tags:

  1. Những trang web hữu ích cho webmaster

Other Posts you may be interested in:

  1. Cách cài đặt Ccleaner để dọn rác máy tính – Phần 2
  2. Hosting – Dreamhost shared hosting packages
  3. Gọi đò – Dương Ngọc Thái
  4. Bộ hình nền máy tính gái xinh cực cool chất lượng Full HD 1920×1080
  5. Fix “Microsoft excel cannot open or save any more documents…”
  6. Hosting – Namecheap shared hosting
  7. Lịch thi đấu ngoại hạng Anh mùa giải 2018 – 2019
Cập nhật lúc: 00:11:54 AM, 27th October 2015


Leave A Reply