UpdraftPlus Home › Forums › Paid support forum – UpdraftPlus backup plugin › Redirected to old site after migration
Tagged: migration., redirect
- This topic has 8 replies, 5 voices, and was last updated 7 years, 1 month ago by James.
-
AuthorPosts
-
December 20, 2014 at 10:56 pm #70832MichaelParticipant
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.December 20, 2014 at 11:00 pm #70836udadminKeymasterHi 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
December 20, 2014 at 11:28 pm #70843MichaelParticipantI 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.
December 20, 2014 at 11:34 pm #70846udadminKeymasterHi,
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,
DavidDecember 21, 2014 at 12:05 am #70857MichaelParticipantI 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!
October 6, 2017 at 2:21 am #233725MarkParticipantI 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.
October 6, 2017 at 5:01 pm #233829Dee NutbourneModeratorHi 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 NOctober 7, 2017 at 2:55 pm #233936JamesParticipantI 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.
October 7, 2017 at 3:17 pm #233939JamesParticipantlooking 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); -
AuthorPosts
- The topic ‘Redirected to old site after migration’ is closed to new replies.