I recently moved a Magento website to a new sub-domain/directory, but now I can not login to the admin.
When I try login to the new domain admin (/admin) it redirects to the login page of the old domain.
I have changed the base urls in core_config_data but this did not solve the problem.
Solved! Go to Solution.
Private browsing window didn't work.
I don't have multiple store views.
Clearing the cache/session in var doesnt work.
You may want to go through the core_config_data table in your database and look for any mentions of the old domain.
Chances are there are still some references to the old domain and you'll need to change them to the new domain (and clear your cache once you do that).
All the mentions of the old domain have been changed in core_config_data.
Still having the problem.
Just to confirm that you have went through the whole database tables and changed everything?
Did you clear your Magento cache and sessions after changing it?
Finally, do you have any redirects setup at all? Check your .htaccess file to identify if there's any redirects.
Agree with JLHC.
Clear Magento Cache Manually.
I have done this many times. Always cleared Magento Cache manually. had no issues
this is probably old htaccess redirect
check if you have updated rewrite base, etc