• I have an old WP installation dated from a year or so ago, that I’m attempting to restore and work on using a different domain (i.e. mydomain.com/old-wp). I no longer own the domain the installation previously used but I still have the old DB, which I’ve imported. Being that this is an older installation, WP needs updated and so too does the theme (the latter of which is broken at the moment).

    Navigating to mydomain.com/old-wp/wp-admin redirects me to the previous domain’s URL, which is obviously an issue.

    http://olddomain.com/wp-login.php?redirect_to=http%3A%2F%2Fmydomain.com%2Fold-wp%2Fwp-admin%2F&reauth=1

    I feel like I should know this but how can I resolve this issue?

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Use this script to search for http://oldomain and replace with http://newdomain.

    https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

    The script runs outside of WP, so the theme/login stuff should not be an issue.

    Thread Starter Orbit Storm

    (@orbit-storm)

    This script, while it definitely updated paths, doesn’t appear to be helping.

    Let me add some clarification.

    • Current domain is mydomain.com.
    • I have this backup WP installation uploaded to mydomain.com/wp-old.
    • I’ve changed all instances of olddomain.com to mydomain.com/wp-old.

    When attempting to navigate to mydomain.com/old-wp/wp-admin, I get a 404. Link shown in the URL bar is as follows:

    http://mydomain.com/wp-old/wp-admin/mydomain.com/wp-old/wp-login.php?redirect_to=http%3A%2F%2Fmydomain.com%2Fwp-old%2Fwp-admin%2F&reauth=1

    Bit confusing!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Restoring backup under new domain’ is closed to new replies.