12 min
Website Migration to New Hosting
Backup, transfer, DNS change step by step.
BeoHosting Tim
10+ godina iskustva — Stručnjaci za web hosting i infrastrukturu
- Hosting
- WordPress
- cPanel
- SEO
- Security
- Domains
Poslednje ažurirano:
Migrating a website to new hosting sounds scary, but with the right steps you can do it with zero downtime. This guide walks through backup, FTP transfer, MySQL export and import, DNS update, and SSL setup. BeoHosting offers free professional migration for all paid plans.
Website Migration to New Hosting
Take a full site backup
Before any change, take a complete backup. In cPanel go to Backup → Download a Full Account Backup. This saves all files, databases, email accounts and settings. For WordPress, alternatively use UpdraftPlus for a one-click backup. Store the backup in multiple locations (local disk, cloud storage).
Export the database
In cPanel open phpMyAdmin, pick your site database and click "Export". Choose Quick → SQL format → Go. Save the .sql file to your computer. For large databases (>50 MB) use Custom Export with "gzipped" compression.
Copy files to the new host
Two ways: FTP client (FileZilla) — download all files from public_html on the old host, upload to the new. For faster transfer, zip public_html on the old host (File Manager → Compress), upload one .zip to the new host and extract. SSH transfer (scp command) is fastest for large sites.
Import the database on the new host
On the new host (BeoHosting cPanel) create a new MySQL database and user (MySQL Databases). Open phpMyAdmin, pick the new database and click "Import". Upload the .sql file and click Go. For large databases use the BigDump script.
Update configuration files
For WordPress: open wp-config.php in File Manager and update database details: DB_NAME (new db name), DB_USER (new user), DB_PASSWORD (new password) and DB_HOST (usually localhost on BeoHosting). For other CMSes, find the appropriate config file and update connection parameters. Check for hardcoded URLs that need updating.
Change DNS records (nameservers)
When the site works on the new host, change nameservers at your domain registrar to BeoHosting nameservers: ns1.beohosting.com and ns2.beohosting.com. DNS propagation takes 2-24 hours during which some visitors see the old site and some the new. Do not turn off the old hosting for at least 48 hours after the DNS change.
Test the site on the new host
Before the DNS change, test the site using the hosts file on your computer or the temporary URL BeoHosting provides. Check all pages, forms, links, images and functionality. Test load speed too. If using WordPress, install the Better Search Replace plugin and update all URLs in the database from old to new domain (if the domain changed).
Activate the SSL certificate
On BeoHosting, free Let's Encrypt SSL is included on every package. In cPanel open SSL/TLS Status, tick the domain and click "Run AutoSSL". Within minutes you get a valid SSL. Force HTTPS via cPanel "Force HTTPS Redirect" or .htaccess.
Spremni da pokrenete svoj sajt?
Pridružite se 4.000+ zadovoljnih korisnika. Besplatna migracija i 15 dana garancije povrata novca.
FAQ
Odgovori na najčešća pitanja o našim uslugama.
Naše garancije za vaš mir
Zaštićeni ste sa svake strane
15 dana garancije
Vraćamo novac bez pitanja u prvih 15 dana.
Besplatna migracija
Mi prebacimo vaš sajt bez prekida — vi ništa ne radite.
24/7 podrška
Naši stručnjaci su tu 24/7 kroz tikete i live chat.