WordPress Q&A Forum › How can I change the domain name for my WordPress site..
The first step is to purchase domain name from domain name registrar like Namecheap or GoDaddy..
you can register domain name right inside your web hosting dashboard, so you do not have to bother with registrar.
you'll need to follow their instructions to connect your new domain name to your website.
Okay, by now you should have purchased your new domain name, correctly to the server where your WordPress site is hosted..
The final step before actually changing your domain name is to ensure you've got complete and backup of your entire website.
word of warning once you save your changes, you'll have to log into your WordPress dashboard again, because it will no longer be accessible from URL.
your site will become inaccessible and you'll need to reach out to the team for your web host to restore your site..
With that step complete, you should now be able to access your WordPress site from your new domain name..
To correct this, install and activate Better Search Replace plugin, and then follow the instructions to replace every instance of your domain name with the domain name..
Read more