Posted by JeffGSR on December 26, 2012 at 9:21pm
Hello,
I am in the process of transferring a custom Drupal site to a new server under a new domain name. The site works fine on the new server, under the new domain, however, problem is when I try to login to the admin area http://www.newdomain.com/user. When I login, I am automatically redirected to the live site admin area https://www.olddomain.com/user. I can't figure out what is causing this redirect. I checked the .htaccess file and searched the database, but nothing turned up. Any ideas?
Comments
You might also check the settings.php file
You might also check the settings.php file and see what is set as the $base_url. If it doesn't contain the old domain name, then I would leave the setting as-is.
You could also try clearing the cache tables to see if that helps.
Deruitern, Thanks for your
Deruitern, Thanks for your suggestions, but unfortunately none worked. I thought maybe the URL_alter module was causing the redirect, but from what I could tell, its not. Any other ideas? How else are redirects applied in Drupal?
Does anyone know a quick way
Does anyone know a quick way to override any possible redirects that are set? This is crazy that I can't login to the backend. Every time I enter http://www.newdomain.com/user I am redirected to https://www.olddomain.com/user.
After further research, I
After further research, I found the problem. This Drupal installation had the Secured Pages module installed which was automatically redirecting the user login page to a secure domain name. I disabled this module from the database and now I am able to login to the admin area.