If you want to move your WordPress website to a new domain name, you will need to make some changes to the website itself to ensure it understands that it’s now operating under a new domain name. There are a few ways this can be done:
There may still be some references to the old domain name in your website’s database. If you find this is the case, you can use a search and replace plugin to update all the references in the database. Before doing this, take a backup of your website’s database using PHPMyAdmin’s export tool.
If you have any caching plugins installed, you may want to clear all cache. The plugin will allow you to do this in the plugin’s management interface, via your WordPress website’s admin portal (wp-admin).
The way that Elementor pages and content are linked via the database is different. You will likely need to fix these links after changing your domain name — luckily, Elementor has a tool to manage this for you!
Go to Elementor > Tools > Replace URL Tab.
Enter your old-url and your new-url and click Replace URL.
Under the General Tab > Regenerate CSS, click Regenerate Files.
In Settings > General on your WordPress Dashboard, make sure that the URLs are similar.