New Domain, Old Domain Login
-
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 https://newdomain.com/wp-admin/it redirects to this..
https://olddomain.com/wp-login.php?redirect_to=https://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’,’https://newdomain.com’);
define(‘WP_SITEURL’,’https://newdomain.com);
..to the wp-configQuestion:
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.
- The topic ‘New Domain, Old Domain Login’ is closed to new replies.