Home / Tutorial / WordPress / Cara Migrasi Website
WordPress

Cara Migrasi Website ke Hosting Baru - Tutorial Lengkap Tanpa Downtime

21 Oktober 2025 10 menit baca Tingkat: Menengah

Mau pindah hosting tapi takut website rusak atau down? Tutorial ini akan memandu Anda step-by-step migrasi website WordPress dengan aman dan tanpa downtime.

Migrasi Aman & Cepat

⚠️ Kapan Harus Migrasi?

  • Hosting lama sering down atau lambat
  • Harga hosting terlalu mahal
  • Customer service tidak responsif
  • Mau upgrade ke hosting yang lebih baik
  • Butuh fitur yang tidak ada di hosting lama

📋 Yang Perlu Disiapkan

✅ Hosting Baru

Pastikan sudah aktif & bisa diakses

✅ Akses cPanel/SSH

Hosting lama & baru

✅ Backup Website

File + Database

✅ Akses Domain

Untuk update DNS/nameserver

🚀 Step-by-Step Migrasi

Step 1: Backup Website Lama

Via Plugin (Mudah):

  1. Install plugin "All-in-One WP Migration" atau "Duplicator"
  2. Go to plugin menu → Export
  3. Download file backup (.wpress atau .zip)
  4. Simpan di komputer Anda

Via cPanel (Manual):

  1. Login ke cPanel hosting lama
  2. File Manager → Compress semua file website (public_html)
  3. Download file .zip
  4. phpMyAdmin → Export database (format SQL)

Step 2: Setup di Hosting Baru

  1. Login ke cPanel hosting baru
  2. Buat database baru (MySQL Database)
  3. Catat: Database name, Username, Password
  4. Upload file backup ke public_html
  5. Extract file backup

Step 3: Import Database

  1. phpMyAdmin → Pilih database baru
  2. Tab "Import" → Choose file database (.sql)
  3. Klik "Go" → tunggu proses selesai

Step 4: Update wp-config.php

Edit file wp-config.php, update:

define('DB_NAME', 'database_baru');
define('DB_USER', 'username_baru');
define('DB_PASSWORD', 'password_baru');
define('DB_HOST', 'localhost'); // atau sesuai info hosting

Step 5: Testing

Sebelum update DNS, test dulu:

  • Gunakan temporary URL dari hosting baru
  • Atau edit file hosts di komputer
  • Check semua halaman, form, checkout (jika toko online)
  • Pastikan tidak ada error

Step 6: Update DNS/Nameserver

Jika testing OK:

  1. Login ke domain registrar (Namecheap, GoDaddy, dll)
  2. Update nameserver ke nameserver hosting baru
  3. Tunggu propagasi DNS (1-24 jam)

✅ Step 7: Verifikasi & Cleanup

Setelah DNS propagasi selesai:

  • Check website dari berbagai device & browser
  • Verify SSL certificate (jika ada)
  • Test email (jika ada email di domain)
  • Monitor 3-7 hari untuk memastikan stabil
  • Baru cancel hosting lama setelah yakin 100% lancar

⚠️ Troubleshooting

Error: Database Connection

Solusi: Double check wp-config.php, pastikan DB_NAME, DB_USER, DB_PASSWORD sudah benar

Error 500 / Internal Server

Solusi: Check .htaccess, coba rename jadi .htaccess_old dan regenerate dari WordPress Settings → Permalinks

Images/CSS tidak load

Solusi: Update URL di database dengan plugin "Better Search Replace" atau "Velvet Blues Update URLs"

💡 Tips Pro

  • Lakukan migrasi di jam traffic rendah (malam/dini hari)
  • Jangan cancel hosting lama sebelum yakin 100% lancar (min 7 hari)
  • Backup lagi setelah migrasi berhasil
  • Document semua credentials (database, FTP, dll)
💡

Tidak Punya Waktu atau Takut Salah?

Kami mengerti bahwa tutorial di atas mungkin terlihat rumit dan memakan waktu.
Satu kesalahan kecil bisa membuat website Anda down atau bermasalah!

✅ Solusi: Biar Profesional yang Handle

Jasa Migrasi Website
Rp 800.000
  • Dikerjakan oleh tim berpengalaman
  • Selesai cepat tanpa trial-error
  • Garansi 100% berhasil
  • Include troubleshooting & support
  • Free konsultasi

Garansi Uang Kembali Jika Tidak Puas

📚 Artikel Terkait

Cara Optimasi Kecepatan Website

Tingkatkan loading speed website Anda

Install SSL Certificate

Amankan website dengan HTTPS

#WordPress #Migrasi #Hosting #Tutorial