🎉 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.
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 |
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
The Complete 8-Step Website Migration Guide for Sri Lanka
Step 1: Back Up Your Entire Website
~20 minutesThe 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:
- Log in to your current hosting cPanel
- Open File Manager → navigate to
public_html - Select all files → right-click → Compress → create a .zip file
- Download the .zip file to your computer
Back up your database:
- In cPanel, open phpMyAdmin
- Select your database from the left panel
- Click Export → choose Quick method → Format: SQL
- Click Go — your
.sqlfile will download
Step 2: Sign Up for Your New Sri Lanka Web Hosting
~5 minutesHead 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
Step 3: Upload Your Website Files to the New Host
~30–60 minutesNow 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):
- Log in to your new cPanel
- Open File Manager → go to
public_html - Click Upload → upload your .zip backup file
- Right-click the .zip → Extract → confirm extraction to public_html
Option B — Via FTP using FileZilla (recommended for large sites):
- Open FileZilla → enter your new server IP as Host, cPanel username, and password
- Port: 21 → click Quickconnect
- On the right panel, navigate to
public_html - On the left panel, locate your unzipped website files on your computer
- Drag all files from left to right to upload
Step 4: Create a New Database and Import Your Data
~10 minutesYour 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:
- In cPanel, click MySQL Databases
- Create a new database — note the database name
- Create a new database user with a strong password
- Add the user to the database with All Privileges
- Note all three: database name, username, password
Import your old database:
- In cPanel, open phpMyAdmin
- Select your newly created database from the left
- Click the Import tab
- Click Choose File → select your .sql backup file
- Click Go — your database data will import
Step 5: Update Your wp-config.php (WordPress Sites)
~5 minutesIf 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:
Replace the values with the database name, username, and password you created in Step 4. Save the file.
Step 6: Test Your Website Before Changing DNS
~15 minutesThis 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):
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.
Step 7: Update Your Domain Nameservers (Go Live)
~5 minutes + 1–24 hrs propagationOnce 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:
- Log in to your domain registrar account
- Find your domain → click Manage DNS or Nameservers
- Change to Custom Nameservers
- Enter the nameservers from your new host welcome email:
ns1.srilankawebhosting.com&ns2.srilankawebhosting.com - Save changes
You can check propagation progress at dnschecker.org — enter your domain and watch the green ticks appear from different countries.
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:
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.
Website Migration Checklist – Sri Lanka
Use this quick checklist to make sure you haven't missed anything during your Sri Lanka website migration:
Website Migration FAQ – Sri Lanka
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