WordPress.org

Support

Support » Installation » Moving WordPress to new domain, problems redirecting back to old one

Moving WordPress to new domain, problems redirecting back to old one

  • I’m trying to duplicated a wordpress install at two different locations with different domains (eventually they’ll have slightly different content). I’ve duplicated the files and databases and updated the wp-config file and used PHPMyAdmin to update “home” and “siteURL” in the database.

    When I visit the domain, I get what I’m expecting, but when I try to visit wp-admin I get redirected back to the wp-admin for the old site.

    e.g. when I try to go to http://www.mysite.com/wp-admin, it redirects to http://www.myoldsite.com/wp-login.php?redirect_to=http%3A%2F%2Fmysite.com%2Fwp-admin%2F&reauth=1

    I’m guessing I missed something in the database, but I can’t for the life of me figure out what it is.

    I’m trying to have both sites live, so I don’t want to take down the old one in hopes that this stops the redirect.

Viewing 1 replies (of 1 total)
  • Try renaming your htaccess file to .htaccess.old and see if that corrects the issue. It sounds as if you have a redirect set up from the old installation. I hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Moving WordPress to new domain, problems redirecting back to old one’ is closed to new replies.
Skip to toolbar