Aruba migration: site redirects to local domain (connecta.local) instead of live domain after migration

Hi everyone,
I’m publishing a website built with Elementor, developed in LocalWP, to Aruba (aruba.it). I followed the standard migration flow, but I’m facing an issue with a redirect to the local domain.

Migration steps:

  • From LocalWP:

    • took only the contents of /app/public

    • exported the .sql database via AdminNeo

  • On Aruba:

    • uploaded only the public files via FTP

    • imported the .sql database via phpMyAdmin

    • updated wp-config.php with Aruba database credentials

Problem:
When I open the live site:
:backhand_index_pointing_right: http://connectawork.com
I am automatically redirected to the local site:
:backhand_index_pointing_right: http://connecta.local

How can I fix this issue? Thanks to anyone who can help :folded_hands:

Hi @Connecta

If you have SSH access on the hosted site you might have to run a Search and Replace which would look something like this:

wp search-replace ‘SITEURL’ ‘LOCALURL’ --skip-columns=guid

You can use a plugin for this as well like Better Search Replace, but I believe Elementor has a search and replace function under Elementor > Editor > Tools > Replace URL.

You might also have to clear any theme or plugin cache and regenerate CSS. Again Elementor has a button for this as well under Elementor > Tools > Regenerate CSS.