Once restored a backup with akeeba solo, I tried to visit the website and it redirected me to the old website.
I changed the url in core config data and the env.php file with the db connection infos, so I've done:
bin/magento cache:clean && bin/magento cache:flush
and then the website responded correctly but the old domain now redirects to the domain with the restored backup. If I repeat the cache clean and flush on the old domain it works again but the domain with the restored backup redirects to the old domain.
new.tld --redirects-> old.tld
------ cache clean & flush on new.tld ------
old.tld -redirects-> new.tld
------ cache clean & flush on old.tld ------
new.tld --redirects-> old.tld