Transferring prestashop results in it redirecting to the old domain
Things it could be:
lack of a “/” in shop_url table
In ps_configuration set PS_SHOP_DOMAIN_SSL & PS_SHOP_DOMAIN to localhost
In ps_shop_url table you must set domain=localhost, domain_ssl=localhost & physical_uri=/myProject/
Disable cache and compilation
dump database and search and replace using domain.com to newdomain.com
Deleted cache files from /cache/*
clear your browser cache (“Thank you very much it was indeed firefox cache for redirects. Normal cookie deletion in each respective domain didn’t work so I didn’t check it further but it seems that resetting the cache fully fixed the issue.”)
Rebuild .htaccess file from prestashop (this one is not possible as the redirect prevents it but when you can get access to the back-end then go to the SEO Urls in settings and click save to regenerate the .htaccess).
Refs:
https://www.prestashop.com/forums/topic/352677-solved-move-prestashop-16-to-new-domain/
https://stackoverflow.com/questions/30398176/prestashop-redirects-to-old-domain-after-changing-it-in-database
https://www.freelancer.com/projects/php/Redirect-loop-issue-prestashop-after/