WordPress.org

Ready to get started?Download WordPress

Forums

Duplicate 'test' site (3 posts)

  1. unfold82
    Member
    Posted 9 months ago #

    Hey, So I'm trying to duplicate my live site on the server and to create a site to play with.

    1. I've created a directory and duplicated the same wordpress files.
    2. I've duplicated the database and given it a new name.
    3. Updated the wp-config file with new database details and added:
    define('WP_SITEURL', 'http://mysite.co/play');
    define('WP_HOME', 'http://mysite.co/play');
    4. Updated the site_url and home option_value in the database to http://mysite.co/play.

    So I can view the site correctly but when I click on any link, it takes me to the live site... Obviously I want to break this and keep the dev site completely separate. Not sure what might still be pointing to the live site.

    Any ideas gratefully received!

  2. esmi
    Forum Moderator
    Posted 9 months ago #

    Try reviewing Moving_WordPress.

  3. govpatel
    Member
    Posted 9 months ago #

    Did you change urls in database in your testsite database as they may still be pointing to your live site.

Reply

You must log in to post.

About this Topic