Migrate WordPress website to Hostinger
1 min readMay 3, 2023
- Add a website with the same name as the domain
- Create a zip of the root directory of your website (public_html directory)
- Get the name of your database from the wp-config file, Download that database from phpMyAdmin
- From Hostinger, Select your target domain then go to Website -> Auto Installer -> Wordpress. Fillup the form with HTTPS, Create a new databasae, Always update to the newest available version
- From Hostinger, Files -> File manager -> Download the wp-config file. Then replace hostinger’s auto generated wp files with your desired wp files by drag-&-drop or FileZilla
- Replace the wp-config file with the one you have saved earlier.
- Go to phpmyadmin from Hostinger. Enter the database from the top (usually that’s one). You can get the name from wp-config file too.
- Drop all the tables of that database
- Import your original database here (You may need to compress your sql file then upload the zip in case of a large file). If the filesize exceeds 256MB then upload using SSH (recommended): https://support.hostinger.com/en/articles/4536306-how-to-import-a-database-over-ssh
- Copy the hostinger nameservers: ns1.dns-parking.com & ns2.dns-parking.com
- Go to Zone Editor from cpanel and change the Name server records