Cloned a site but can’t log in – redirecting to old site

Check for wp-config.php file.

Find these two lines to your wp-config.php, and make sure “example.com” is the correct location of your site.

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

Also on the database, check for table wp_options, check these two option_name; siteurl and home.