How do you host your website?
You buy a hosting package, upload the site's files and database to the server, point your domain's DNS records at that server, and turn on an SSL certificate so the site opens over https.
How you upload the site depends on how it was built. A hand-coded site is just a folder of files, copied over FTPS or through the control panel's file manager. A WordPress site also has a MySQL or MariaDB database, which moves separately from the files.
The order matters more than the tools. Get the site running on the new server and check it there first, then send visitors to it by changing DNS, and issue the certificate last. The steps below follow that order for a WordPress site moving from another provider.
Our hosting packages run Plesk, so files, databases, certificates and email all live in one panel, and WordPress Toolkit sets up a fresh WordPress install in a few clicks. If your site is with another provider today, tell us where and we will handle the move.
What to gather before you start
Collect the logins first. Without them a migration tends to stall halfway, with the old site still live and the new one unfinished.
- the login for the account where the domain is registered
- access to the new host's control panel
- access to the old host, so you can copy the files and database
- a list of the company mailboxes, if email is moving too
If the site is brand new and there is nothing to move, the list is shorter: you only need the domain login and the panel, and WordPress can be installed straight on the server.
Moving the files and the database
For a WordPress site, this order causes the fewest surprises:
- create a database and a database user in the new panel, and note the name and password
- export the old database to a .sql file from phpMyAdmin or the old panel
- import that file into the new database
- upload the site files to the domain's web folder, httpdocs in Plesk or public_html in other panels
- open wp-config.php and enter the new database name, user and password
A large site is easier to move as a single ZIP archive that you extract in the file manager than file by file over FTPS. An archive also keeps hidden files such as .htaccess, which are easy to lose otherwise.
Test on the new server before switching DNS
Do not send visitors to the new server until you have seen the site working there. Many panels offer a preview address. If yours does not, add the domain and the new server's IP address to the hosts file on your own computer: only your browser will load the new copy, while everyone else still sees the old site.
On that copy, click through a few pages, check the images, send a test message from the contact form and log in to the admin area. "Error establishing a database connection" almost always means a typo in the details you entered in wp-config.php.
Changing DNS without losing email
Two kinds of record matter here. The A record sends visitors to the web server, and the MX records decide where email is delivered. If only the website is moving, change only the A record. If email is moving as well, create the mailboxes on the new server with the same addresses first, and then change the MX records.
A day before the switch you can lower the TTL on those records, the value that tells other servers how long to remember the old address, so the change reaches everyone sooner. Any mail that lands on the old server during the changeover can be copied across afterwards, which is why the old hosting should stay active for a few days. Our page on how web hosting works explains what each record does.
SSL and the final checks
Issue the certificate once the domain points at the new server, because the certificate authority checks exactly that. In Plesk, the free certificate is requested from the domain's SSL/TLS section and renews itself from then on.
- every page opens over https with no browser warning
- the http address redirects to https
- the contact form sends, and the message arrives
- email sent from company addresses does not land in spam
- the automatic backup is running on the new server
If you are still choosing a package and have not reached the technical part yet, the ordering steps are on our page about how to get web hosting.
Updated