I want to migrate my website to a VPS server with Litespeed. I also use Cloudflare
My website [xyz.com](http://xyz.com) is hosted at SiteGround. I created a backup with Duplicator. Then, on my VPS with the Serveravatar panel, I created a new web application, WordPress, for the domain staging.xyz.com. After I restored the backup to the staging site.
I installed the Litespeed cache plugin and did some tweaks and testing.
Now, I want to change the DNS for my [xyz.com](http://xyz.com) Domain to the new VPS server. But before that, I need to adapt the staging site for my [xyz.com](http://xyz.com) domain.
I’m not sure what steps are involved. I think
– Changing site and WordPress URL in settings, general
– rewrite my URL from [staging.xyz.com](http://staging.xyz.com) to [stagging.xyz.com](http://stagging.xyz.com) (Better Search Replace plugin?)
– Issue a new SSL (Letsencrypt) for [xyz.com](http://xyz.com)
– What else is needed?
Thanks,
[ad_2]
To change the URL across the whole db, you can run queries directly in MySQL. You can refer to this site to help you generate the queries: https://rudrastyh.com/sql-queries-to-change-wordpress-website-domain. It is very efficient and helps in making sure the URLs are updated correctly throughout the database. You will need to adjust the table prefixes if yours are different from the default `wp_`.
For the SSL, you’re on point, you will need to issue a new one for [`xyz.com`](http://xyz.com) using Let’s Encrypt. This can typically be done via your Serveravatar panel.
I recommend disabling Cloudflare temporarily during DNS propagation. This will ensures that the DNS changes propagate correctly without being cached by Cloudflare.
DNS changes usually propagate within a few hours, but it can take up to 48 hours. You can use tools like [whatsmydns.net](https://www.whatsmydns.net/) to check the propagation status. Once everything is done clear your site’s cache, including any server-side caching from Litespeed and browser caches. Test your site thoroughly to ensure everything is working correctly. Once the DNS propagation is complete and you’ve verified that your site is working correctly, you can re-enable Cloudflare.