Title: login button redirection
Last modified: August 19, 2016

---

# login button redirection

 *  [bretty](https://wordpress.org/support/users/bretty/)
 * (@bretty)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/login-button-redirection/)
 * Hi,
 * I have a weird situation that I hope someone here can help me with. Somehow, 
   the login button on my wordpress is redirecting to my test site on another domain.
   I’ve removed the .htaccess file, but it is still redirecting. I was thinking 
   maybe it was ABSPATH?
 * [http://randomville.com/wordpress/wp-login.php](http://randomville.com/wordpress/wp-login.php)
 * Link goes to
 * [http://mine2.com/randomville/wp-login.php](http://mine2.com/randomville/wp-login.php)
 * Thanks in advance!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/login-button-redirection/#post-1227179)
 * What urls did you enter in Admin/Settings/General?
 *  Thread Starter [bretty](https://wordpress.org/support/users/bretty/)
 * (@bretty)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/login-button-redirection/#post-1227196)
 * I honestly don’t know. The thing of it is, though, is that I didn’t change anything.
   I just copied the files/db from live site to test site. I obviously (somehow)
   switched something, but now I can’t access the admin panel on either site. I 
   go to one and it redirects me to the other. It’s completely hosed with no way
   in to admin panel on either site unless I can stop the redirection.
 *  [Will White](https://wordpress.org/support/users/willpcg/)
 * (@willpcg)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/login-button-redirection/#post-1227201)
 * Try opening up your wp-config.php file and looking at the info listed there. 
   Your domain name / database links etc might all be referring to the old site.
   You’ll need to update them to the new url.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/login-button-redirection/#post-1227217)
 * Try the wp-config.php fix mentioned in [http://codex.wordpress.org/Changing_The_Site_URL](http://codex.wordpress.org/Changing_The_Site_URL)
 *  Thread Starter [bretty](https://wordpress.org/support/users/bretty/)
 * (@bretty)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/login-button-redirection/#post-1227228)
 * Thanks for the link esmi! I’m back in.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘login button redirection’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [bretty](https://wordpress.org/support/users/bretty/)
 * Last activity: [16 years, 8 months ago](https://wordpress.org/support/topic/login-button-redirection/#post-1227228)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
