Migrate Drupal7 to local, user login link redirect to live, how to redirect it to local?
My guess is your using the secure login module.

Either:

drush vset securelogin_base_url "http://server1/mysitename/user"


or

drush dis securelogin