• Resolved LHAJACK

    (@lhajack)


    So I inherited a WordPress site that is going to undergo some significant changes while the site is still live. So, I have performed a local install of the site using MAMP.

    The problem I am having here is that the local install’s admin is redirecting to the live site’s admin instead.

    So when I try to go to:
    “local.website-address.dev/wp-admin”

    it takes me instead to
    “www.website-address.com/wp-login.php?redirect_to=http%3A%2F%2Flocal.website-address.dev%2Fwp-admin%2F&reauth=1”

    which, then logs me into the the live site dashboard instead of the local.

    I tried giving it a new database and that allowed me to login to the local install, but when I activated the custom theme, it would redirect me back to the live login when I tried to go to any other area of the admin.

    Does anyone know where a likely place to find the cause of this redirect?

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You need to change the site urls in your local install.

    Thread Starter LHAJACK

    (@lhajack)

    Could you be a bit more specific?

    Are you talking about the ones in the general settings in the dashboard? Because I am unable to get there in the local install as it keeps redirecting me to the live site’s dashboard.

    Or is there somewhere else you are referring to?

    Are you talking about the ones in the general settings in the dashboard?

    Yes. See the link I gave above.

    Thread Starter LHAJACK

    (@lhajack)

    The link from your previous post just brings me to the front of the wordpress support forums.

    Also I’m unable to get to the settings in the dashboard for the local install, as any attempt to login to the local dashboard redirects me to the live site’s WP-login.

    Is there another way to access/change this?

    Thanks.

    Thread Starter LHAJACK

    (@lhajack)

    Thanks for pointing that out. Had to go through a couple of the methods to get it to go. But it’s working now.

    Thanks again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Local install Admin redirects to Live install’ is closed to new replies.