Install was setup here: newdomain.olddomain.com
Moved to here: newdomain.com
**note: olddomain.com does have its own install of wp.
Problem:
I moved a wp install to a new domain, the site works, but wp-login is still trying to redirect back to the old domain wp-admin when I hit http://newdomain.com/wp-admin/
it redirects to this..
http://olddomain.com/wp-login.php?redirect_to=http://newdomain.com/wp-admin/&reauth=1
Essentually, trying to log into the root wp-admin in olddomain.com
Workaround:
I did save the URL/Home in settings>general before moving.
I got new wp-admin to work by adding:
define('WP_HOME','http://newdomain.com');
define('WP_SITEURL','http://newdomain.com);
..to the wp-config
Question:
But what I want to know.. where is newdomain.com storing the reference to olddomain.com?
If I remove those define's from the config, it breaks. It's as if the DB wont update the new domain location.