Duplicated WP site manually, now links redirect wrong [closed]

Found the issue: in wp-config.php, there was no http:// before the address on the define('WP_HOME' line.
From WordPress Codex:

Add these two lines to your wp-config.php, where “example.com” is the
correct location of your site.

define('WP_SITEURL','http://example.com');
define('WP_HOME','http://example.com');

Adding these properly solved the issue.