Move WordPress site to new domain URL without moving files/server?
Move WordPress site to new domain URL without moving files/server?
I was asked by a friend if I could help figure out how to move their Wordpress site to a new domain. I'm not a Wordpress developer, so I'm hesitant to do something that could bring their website down.
My friend has an old domain with a server (web hotel) currently hosting the site, and has acquired a new domain they wish to use for the site. However, the new domain is not connected to a web hotel.
Is it possible to change the site URL of a Wordpress site to a new domain, while keeping the files on a server connected to the old domain?
If the answer is Yes, are these the right steps to take:
Configure the new domain with the registrar to set up DNS, www-forwarding etc.
In WP-admin under Settings-General: Change "Site Address" to new domain, keep "Wordpress Address" to old domain
Find and rewrite any hardcoded URLs pointing to the old domain (anything to look for on the backend?)
Configure the old domain to redirect to new domain
???
Am I on the right track? Is there anything I'm missing? Will Wordpress handle having the site on a server connected to the old domain/URL, but showing a new URL to visitors? Are there any pitfalls?
Or should I just tell my friend to contact the domain registrar/hosting service to set up a web hotel connected to the new domain and move the Wordpress installation and site files? Or maybe the web hotel can just change the URL address of their server to match the new domain?
I didn't try implementing any of this, as I was afraid of bringing the site down, or even worse not even being able to access the WP-admin site to change it back in case of emergency. I know just enough to understand I don't fully understand how all of this works, which the way the question is posed probably reveals.
PS. I did try telling my friend they should have a WP developer do it, but apparently the person they have been using is not available, and they don't know who to ask on a short notice. I read other questions on similar subjects here, but I didn't find the answer to this specific case, unless there's something I'm not getting
Turbo Multi-language Translator
Make the better internet purchasing globaly
Turbosify SEO Speed Booster
5.0 (7)•Free plan available
Get better conversions by improving store loading speed
Installed
Turbo Multi-language Chat - AI Customer service in one hand