Migration 8 min read Sri Lanka Web Hosting Team

How to Migrate Your Website to a New Web Host in Sri Lanka – Free Migration Guide

Unhappy with your current web hosting in Sri Lanka? This step-by-step guide shows you exactly how to migrate your website — files, databases, and emails — to a faster, better host with zero downtime. And yes, we do it free for you.

~2 Hours
Total Migration Time
💸
100% Free
Migration with Us
Zero
Downtime
8 Steps
Complete Process

🎉 We Migrate Your Website FREE

Skip the technical steps. Our Sri Lanka hosting team moves your entire site for free when you sign up — zero downtime guaranteed.

Migrate to Us Free →

Why Sri Lankan Website Owners Switch Web Hosts

Thousands of Sri Lankan businesses switch web hosting providers every year — and for good reason. Whether your current host has poor uptime, slow loading speeds, no Sinhala support, or hidden price increases, migrating your website to a better web hosting provider in Sri Lanka is often the smartest move you can make.

The good news? Website migration is not as scary as it sounds. If you follow this guide step by step, your Sri Lanka website will be live on the new host with zero downtime. And if you'd rather not do it yourself, our team does it for you — completely free.

Top Reasons Sri Lankans Switch Web Hosting

Problem with Current Host What You Gain with Sri Lanka Web Hosting
Slow website speed✓ NVMe SSD + 1Gbps network
Frequent downtime✓ 100% Uptime SLA guaranteed
No local support✓ 24/7 support in Sinhala & English
Hidden price increases✓ Fixed Rs. 5,999/yr — no surprises
Limited storage / bandwidth✓ Truly unlimited SSD + bandwidth
No free SSL✓ Free SSL auto-installed
💡 Pro Tip: Before you migrate, open a support ticket with your new host and ask them to handle the migration. At Sri Lanka Web Hosting, we do this 100% free — just share your old cPanel login and we take care of everything.

What You Need Before You Start

Before starting the migration, make sure you have the following ready:

🔑

Old Hosting Login

cPanel username and password for your current host

🆕

New Hosting Account

Your new Sri Lanka web hosting account credentials

💾

FTP Client

Download FileZilla (free) to transfer website files

📁

Backup of Website

Files + database backup as a safety net

🌐

Domain Access

Login to your domain registrar to update nameservers later

Time to Do It

Set aside 1–3 hours and pick a low-traffic time

⚠️ Important: Always take a full backup of your website before starting a migration. This is your safety net in case anything goes wrong during the move.

The Complete 8-Step Website Migration Guide for Sri Lanka

1
💾

Step 1: Back Up Your Entire Website

~20 minutes

The very first thing you must do before any website migration is create a complete backup. This includes all your files and your database.

Back up your website files:

  1. Log in to your current hosting cPanel
  2. Open File Manager → navigate to public_html
  3. Select all files → right-click → Compress → create a .zip file
  4. Download the .zip file to your computer

Back up your database:

  1. In cPanel, open phpMyAdmin
  2. Select your database from the left panel
  3. Click Export → choose Quick method → Format: SQL
  4. Click Go — your .sql file will download
✅ Done: You now have a .zip of your website files and a .sql file of your database. Keep both safe on your computer.
2
🆕

Step 2: Sign Up for Your New Sri Lanka Web Hosting

~5 minutes

Head to srilankawebhosting.com/order and sign up for our Unlimited Web Hosting plan at Rs. 5,999/year. Once you complete the payment, you will receive a welcome email within minutes containing:

  • Your new cPanel username and password
  • Your new server IP address (e.g., 123.456.789.0)
  • New nameservers (ns1.srilankawebhosting.com, ns2.srilankawebhosting.com)
  • Link to your new cPanel control panel
💡 Free Migration Option: Just reply to your welcome email with your old host's cPanel login details and our team will migrate everything for you — completely free. Skip to Step 8 if you choose this option!
3
📤

Step 3: Upload Your Website Files to the New Host

~30–60 minutes

Now upload your website files to the new server. You can do this via cPanel File Manager or FTP.

Option A — Via cPanel File Manager (easiest for small sites):

  1. Log in to your new cPanel
  2. Open File Manager → go to public_html
  3. Click Upload → upload your .zip backup file
  4. Right-click the .zip → Extract → confirm extraction to public_html

Option B — Via FTP using FileZilla (recommended for large sites):

  1. Open FileZilla → enter your new server IP as Host, cPanel username, and password
  2. Port: 21 → click Quickconnect
  3. On the right panel, navigate to public_html
  4. On the left panel, locate your unzipped website files on your computer
  5. Drag all files from left to right to upload
⚠️ Note: For large Sri Lankan e-commerce sites with many product images, FTP upload can take 30–60 minutes. Do this during off-peak hours (late night).
4
🗄️

Step 4: Create a New Database and Import Your Data

~10 minutes

Your website needs a database (MySQL) on the new server. You need to create one and import your old data.

Create a new database in cPanel:

  1. In cPanel, click MySQL Databases
  2. Create a new database — note the database name
  3. Create a new database user with a strong password
  4. Add the user to the database with All Privileges
  5. Note all three: database name, username, password

Import your old database:

  1. In cPanel, open phpMyAdmin
  2. Select your newly created database from the left
  3. Click the Import tab
  4. Click Choose File → select your .sql backup file
  5. Click Go — your database data will import
✅ Done: Your database is now on the new server with all your website content, posts, and settings.
5
⚙️

Step 5: Update Your wp-config.php (WordPress Sites)

~5 minutes

If you are migrating a WordPress website, you need to update the database connection details in your wp-config.php file so WordPress knows where to find the new database.

In cPanel File Manager, open public_html/wp-config.php and find these lines:

// Update these 3 lines with your NEW database details: define( 'DB_NAME', 'your_new_database_name' ); define( 'DB_USER', 'your_new_db_username' ); define( 'DB_PASSWORD', 'your_new_db_password' ); define( 'DB_HOST', 'localhost' ); // usually stays localhost

Replace the values with the database name, username, and password you created in Step 4. Save the file.

💡 Non-WordPress Sites: If you use a different CMS or a custom PHP site, look for a config file (e.g., config.php, settings.php) that contains database connection details and update those values instead.
6
🔍

Step 6: Test Your Website Before Changing DNS

~15 minutes

This is the most important step for achieving zero downtime. Before you change your domain's DNS, test your website fully on the new server using your computer's hosts file. This lets only you see the new site while visitors still see the old one.

How to edit your hosts file:

On Windows: Open Notepad as Administrator → File → Open → C:\Windows\System32\drivers\etc\hosts

On Mac/Linux: Open Terminal → type sudo nano /etc/hosts

Add this line at the bottom (replace with your actual new server IP and domain):

123.456.789.0 yourdomain.com 123.456.789.0 www.yourdomain.com

Save the file. Now open your browser and visit your domain — it will load from the new server. Check all pages, forms, images, and the checkout (if e-commerce) work correctly.

When testing is complete, remove those lines from your hosts file before Step 7.

✅ What to Test: Homepage loads ✓  |  All pages accessible ✓  |  Images display ✓  |  Contact form works ✓  |  Login/checkout works ✓  |  SSL shows padlock ✓
7
🌐

Step 7: Update Your Domain Nameservers (Go Live)

~5 minutes + 1–24 hrs propagation

Once you are 100% happy your website works on the new server, it's time to go live. You do this by updating your domain's nameservers at your domain registrar (e.g., domains.lk, GoDaddy, Namecheap).

How to update nameservers:

  1. Log in to your domain registrar account
  2. Find your domain → click Manage DNS or Nameservers
  3. Change to Custom Nameservers
  4. Enter the nameservers from your new host welcome email:
    ns1.srilankawebhosting.com  &  ns2.srilankawebhosting.com
  5. Save changes
⚠️ DNS Propagation: After updating nameservers, it takes 1 to 24 hours for the change to spread worldwide. During this time some visitors may still see the old site — this is normal. Both sites remain live, so there is zero downtime.

You can check propagation progress at dnschecker.org — enter your domain and watch the green ticks appear from different countries.

8

Step 8: Verify Everything & Cancel Old Hosting

~10 minutes (after 24 hrs)

After DNS has fully propagated (usually within 24 hours), do a final full check of your live website:

Website loads on the live domain
SSL padlock shows (HTTPS active)
All pages and images load correctly
Contact/booking forms submit correctly
Checkout and payments work (if e-commerce)
Business emails are sending and receiving
Google Analytics still tracking
Admin login (WordPress/CMS) works

Once everything passes, keep your old hosting account active for 3–7 more days as a final safety net. After that, cancel it — you no longer need it.

🎉 Congratulations! Your Sri Lanka website is now fully migrated to faster, more reliable web hosting. Your visitors will notice the speed difference immediately.

Website Migration Checklist – Sri Lanka

Use this quick checklist to make sure you haven't missed anything during your Sri Lanka website migration:

Pre-Migration
During Migration
Go Live

Website Migration FAQ – Sri Lanka

No — if you follow this guide correctly, your website will experience zero downtime. The key is testing on the new server via the hosts file before changing your DNS. Both old and new servers stay live during DNS propagation.
The technical migration (files + database) typically takes 1–3 hours depending on your website size. DNS propagation after the switch takes 1–24 hours, but your site stays live throughout.
Yes, completely free. When you sign up for our Sri Lanka web hosting plan at Rs. 5,999/year, simply send us your old cPanel login and we migrate everything — files, database, emails — at no extra charge.
Yes, email will be affected when nameservers change. To minimise disruption, migrate your email settings first, test them, and inform contacts of any brief outage. Our team handles this for you in the free migration service.
Yes. Your WooCommerce orders are stored in the database. As long as you export and import the full database correctly (Step 4), all orders, customers, and products will be preserved.
That's why Step 1 (backup) is so important. If anything goes wrong, your old site is still live and unchanged. You can start over from your backup. Our support team is available 24/7 in Sinhala and English to help.
No — you only need to update the nameservers at your domain registrar (Step 7). The domain itself stays at your registrar. You don't need to transfer the domain unless you want to.
🚀

Ready to Migrate? We Do It Free.

Skip all 8 steps above. Sign up for Sri Lanka Web Hosting at Rs. 5,999/year and our team will migrate your entire website — files, database, and emails — completely free with zero downtime.

✓ 30-Day Money Back  |  ✓ 100% Uptime SLA  |  ✓ 24/7 Sinhala Support

Related Web Hosting Guides

The Easiest Way to Migrate Your Website in Sri Lanka

Website migration in Sri Lanka doesn't have to be stressful. Whether you follow our 8-step guide yourself or let our team do it free, moving to faster unlimited web hosting in Sri Lanka is one of the best investments you can make for your website's speed, uptime, and Google ranking. Join 5,000+ Sri Lankan businesses who already trust us with their web hosting.

Migrate Your Website Free – Rs. 5,999/yr