Moving WordPress to new domain, problems redirecting back to old one (2 posts)

  1. MattBoutet
    Posted 4 years ago #

    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.

  2. Tim S
    Posted 4 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.