How do you change a WordPress site’s URL?

Create a backup of the files and database before changing the URL. Make sure the new domain or HTTPS hostname already points to the server, is added to the hosting account, and has a working certificate. Keep access to the old address during the transition so you can recover from a redirect or login problem.
In the dashboard, open Settings, General and update the WordPress Address and Site Address to the planned values. These fields may be locked by constants in wp-config.php or by a managed hosting platform. Understand the difference between them before changing only one field.
The settings do not rewrite every URL stored in page content, widgets, page-builder data, or plugin options. Use a WordPress-aware search-and-replace or migration tool for the old domain, especially when serialized data is present. Update redirects, canonical tags, sitemap entries, analytics, email links, webhooks, and third-party callbacks.
Clear WordPress, server, CDN, and browser caches, then test the public site and dashboard. Add a permanent redirect from each old URL to its equivalent new URL and keep it active. Check forms, media, login, scheduled tasks, and search indexing before considering the migration finished.