Moving a website to a new host: 20 checks
Moving a site to a new hosting provider breaks in a handful of known places: a database dump that will not import, a PHP extension the new server lacks, mail that goes missing after the MX change, changed URLs that 404 a
Moving a site to a new hosting provider breaks in a handful of known places: a database dump that will not import, a PHP extension the new server lacks, mail that goes missing after the MX change, changed URLs that 404 after the switch. I run TickYouOff, a free checklist app on the web and Android, and its website migration checklist is built to catch each of those before your users do.
It has 20 items, rated hard, with an estimate of two hours of hands-on work. The calendar time is longer, because one item (lowering your DNS TTL) has to happen two or three days before the switch. Nine of the 20 come before you change any DNS record at all, so below they are grouped by when they happen instead of as one flat list.
Before DNS: copy, record, rebuild
Take two backups, and treat them as separate jobs. The first is files: the webroot, media and any uploaded files, stored off the server with a timestamped copy. The second is the database. Export the latest dump with mysqldump or phpMyAdmin, then import it locally before you migrate anything. A dump only counts once you have seen it restore.
Next, write down what the old server is running. The checklist names the PHP version and extensions, the PHP-FPM and nginx or Apache configs, cron jobs and mail settings. That inventory is the list you check the new host against in a moment.
Before building anything new, prepare the way back. Document the rollback steps, the restore point and the people to call if you need to revert, and confirm you can reach the backups when you need them.
Then set up the new environment. Create the database and its user, and match the PHP version and extensions from your inventory before configuring cron jobs and permissions. Files go up over SFTP. Keep the owner and group intact on the way, then set web-safe permissions on folders and files.
The database goes in last. Import the dump, point the DB credentials and connection strings in your config files at the new server, and test the connection.
Now test the new site while the public still sees the old one. A hosts file override on your own machine, or the host's preview URL, lets you load pages, log in and use the dynamic features against the new server. Then reissue or install the SSL certificate there and verify the chain. Check for mixed-content warnings while you are at it.
The cutover window
Lower the DNS TTL to 300 to 600 seconds, 48 to 72 hours before you switch. That is five to ten minutes, so once you change the records, resolvers that honour the TTL stop handing out the old address within that window.
Email gets its own item, and it is easy to skip if you think of the move as a web job. Have the MX, SPF, DKIM and DMARC records ready, or run your separate email migration plan, and schedule the mail cutover so nothing is lost in between.
Change the A and AAAA records to point at the new host inside the window you planned, and watch propagation. Any page whose URL changed in the move needs a 301 now. The checklist asks for server-level 301s or rewrite rules, so you keep your search rankings and the bookmarks people saved.
Smoke tests before traffic arrives
Before public traffic switches over, a short round of smoke tests checks that the core of the site works. Load the homepage and log into an admin account and a user account, and confirm the site loads quickly with no errors. Submit the contact form, an order and any other form that matters, then check the transactional emails and webhook endpoints they trigger. Last, verify HTTPS end to end. That means a valid certificate, no mixed content, and canonical URLs that redirect correctly.
After launch
Once the new host is live, monitor DNS propagation with a propagation checker and spot-check access and latency from different locations. Run a crawler such as Screaming Frog to find 4xx and 5xx responses, then fix the routes or map the redirects you missed. Submit the updated sitemap, check Google Search Console for errors, request reindexing if needed, and keep an eye on the coverage reports.
Using it as a checklist
On TickYouOff the 20 items tick off in the browser, and you can work through them without signing up (sign in only if you want to save). The list also exports as Markdown or JSON, which helps if your migration notes live in a repo.
The full checklist, with a note under every item: https://tickyouoff.com/checklist/website-migration-checklist/?utm_source=devto&utm_medium=devto&utm_campaign=tickyouoff-how-to&utm_content=tyo-1129-2
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.