I'm having an issue with a local copy of a live WordPress site. The local site itself "http://localhost/mywordpress/" works, but when I try to access the wp-login.php page, it redirects me to the production site. I do the following under a local XAMPP setup:
copy the production WP folder;
import the MySQL database to the local db with the same credentials as production (I've already created the db and username);
update the 'home' and 'siteurl' to localhost;
delete the wp-config.php file so that I can set up the configuration manually;
upon the setup, I am able to view the site's homepage, but accessing http://localhost/mywordpress/wp-login.php redirects me to the production site.