WordPress.org

Forums

SQL DB issues when copying sites (3 posts)

  1. markcolclough
    Member
    Posted 5 years ago #

    hi!

    I have http://domain.com running running WP 2.8.4

    I create a new homepage http://anotherdomain.com

    I copy the SQL database & the entire WP installation from http://domain.com to http://anotherdomain.com

    Everything works perfectly apart from one thing:

    When I try to accesss http://anotherdomain.com/wp-admin I get redirected to http://domain.com/wp-admin

    Is there a simple PHP fix, or should I be editing somewhere in the SQL database?

    Any help is really appreciated!

    mark

  2. markcolclough
    Member
    Posted 5 years ago #

    here is the link between the two:

    http://domain.com/wp-login.php?redirect_to=http%3A%2F%2Fanotherdomain.com%2Fwp-admin%2F

    hope this helps!

    Thanks again,
    mark

  3. Shane G
    Member
    Posted 5 years ago #

    Hi,

    You need to change your site URL value in database for that refer this article:

    http://codex.wordpress.org/Changing_The_Site_URL

    Thanks,

    Shane G.

Topic Closed

This topic has been closed to new replies.

About this Topic