wp-admin redirect to wrong url
-
Initially WordPress ran just the blog on the site and was installed in a directory called blogs.
Recently I moved the entire site into WordPress, and changed the root folder for the site to the blogs directory.
There is only one issue with this move I can find
If I go to https://www.airecanada.com/wp-admin
I get redirected to
https://www.airecanada.com/wp-login.php?redirect_to=http%3A%2F%2Fwww.airecanada.com%2Fblogs%2Fwp-admin%2F&reauth=1This is the old directory and does not work ??
If I go directly to https://www.airecanada.com/wp-login.php
I am able to logon without an issue.I am on 4.2
Things I have tried that didn’t work
disable all plugins
– no changeforce settings in wp-config.php
define( ‘WP_SITEURL’, ‘https://www.airecanada.com’ );
define( ‘WP_HOME’, ‘https://www.airecanada.coms’ );
– home and url greyed out in settings, but didn’t fix the issueused Better Search Replace to check the database for the old url and updated it to the new url
– no changeCleared browser cache and tried multiple browsers
– no changeupdated permalinks
– no changewp-config.php
define(‘RELOCATE’,true);
– no changeI tried to turn on debugging but have not had any luck with that.
wp-config.php
define(‘WP_DEBUG’, true);Just in case it matters I had problems getting the 4.2 update completed.
I eventually tracked this to bloated tables and fixed them with
https://www.internetearnings.com/how-to-clean-up-comment-meta-in-wordpress-database/
then I was able to update the databaseIt’s not the end of the world as I can get in but I would like to know where this comes from.
- The topic ‘wp-admin redirect to wrong url’ is closed to new replies.