Redirected to old site after migration

UpdraftPlus Home Forums Paid support forum – UpdraftPlus backup plugin Redirected to old site after migration

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #70832
    Michael
    Participant

    First I had a devil of a time figuring out why my migration was failing every time. I determined it was a problem of some kind with the Uploads backup file. No problem I did that one manually. But now when I run the restore on the new site, with successful completion message, including the database search and replace, I get logged out and redirected to the old site I was migrating from. I can’t even log in manually, so I end up having to delete and reinstall the entire WP installation and start over. This has happened several times. Any ideas?

    After success, I get this message:
    No Update Required
    Your WordPress database is already up-to-date!
    And continuing takes me to the old site I am migrating from. So does trying to log in directly to the new site.

    #70836
    udadmin
    Keymaster

    Hi Michael,

    Please can you post your migration log file? You can find it in wp-content/updraft. pastebin.com is a suitable service to use to paste it (it’ll be too long for the forum here).

    Most common causes (actually, the only ones we’ve ever seen, after a few ten-thousands of migrations):

    • Browser has cached the redirect – after migration completes, try logging in using a new web browser
    • Migrator add-on was not installed (check your Add-ons tab)
    • User forgot to tick the search/replace box: https://updraftplus.com/faqs/migrated-site-searchreplace-database-can-now/
    • User ticked the box to include wp-config.php in the restore operation (which should never be done with a migration).

      But, if you send the log file, I should be able to check.

      Best wishes,
      David

    #70843
    Michael
    Participant

    https://pastebin.com/R6QRCnfA

    I tried a new browser, no luck. I tried logging in from a new browser and it threw an error about the servers not being what they say they are. Migrator is active and I did get the message about search and replace. The config.php looks fine, in that it has a different database and user, etc than the site from which it came (so I’m assuming it’s the new database). I haven’t looked i phpmyadmin yet to go line by line.

    #70846
    udadmin
    Keymaster

    Hi,

    Ah – it’s one I have seen before once, but hadn’t thought of.

    It’s because your site is configured to redirect admin requests to SSL (i.e. https://), but you don’t have an SSL certificate for https://dev.thetbar.com; the webserver is set up to funnel all https:// traffic into the original site.

    So, it’s the webserver configuration that’s doing it. Depending on what mechanism you’re using to redirect admin requests to SSL, you’ll either want to turn it off and then create a fresh backup (database only is necessary), or to switch off the redirect wherever else it is you’re using it. Or alternatively, get an SSL certificate for the dev site, so that the setup is a proper replica of the cloned site.

    It’s the very end of the week here now, so I won’t be able to reply again before Monday.

    Best wishes,
    David

    #70857
    Michael
    Participant

    I had an idea something to do with the https was causing it. Even knowing this, deleting the wp-https plugin, and clearing caches, etc I still had problems UNTIL I looked in the hosting cPanel, under the subdomain and disabled redirection there (whcih I didn’t know was set at all). In case this helps anyone else. Meanwhile thanks for helping me out!

    #233725
    Mark
    Participant

    I am having a similar problem. I have backed up my site to Dropbox to bring down to my local. The restoration of the backup is successful. The homepage will even work. But try to go to wp-admin and it redirects to my live site. None of the other pages will load.

    Can’t give the logs, cause I can’t get into the backend.

    Your help would be appreciated. Thank you.

    #233829
    Dee Nutbourne
    Moderator

    Hi Mark,

    The restoration log should also be accessible via FTP from the ‘wp-content/updraft’ directory.
    Please could you send us a copy?

    The contents will be too long to post here directly, but you can use an online service such as Pastebin or Dropbox, and post the link here.

    Best Wishes,
    David N

    #233936
    James
    Participant

    I am having the same issue I can’t see the redirection to turn off in cpanel thou.

    even forcing the ip in hosts file still causes it to redirect.

    #233939
    James
    Participant

    looking through the forum I came across this reply and I think this seems to have resolved it…

    If you add the following to wp-config.php (above the ‘stop editing’ line and switching the example URL), are you able to gain access to WP Admin:

    define(‘WP_SITEURL’, ‘https://example.com’);
    define(‘WP_HOME’, WP_SITEURL);

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Redirected to old site after migration’ is closed to new replies.