WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Duplicate copy for testing (3 posts)

  1. danika
    Member
    Posted 4 years ago #

    I am attempting to set up a duplicate copy of WordPress to test with a new site design. I made a copy of the WordPress code folder and copy of the database and changed wp-config.php to point to the database copy. However, when I enter .../wordpress_copy/wp-admin/ in my browser, it takes me back to the original folder. I assume that's because the database copy still says that's where the app is located. But this is like a catch-22. How do I login to the admin in the /wordpress_copy/ folder?

  2. Chris_K
    Member
    Posted 4 years ago #

    Are your copied DB tables in a different database from the original? They either need to be or they need to have different prefix (which you then set in wp-config.php).

    Assuming that's not an issue, check out Changing_The_Site_URL in the codex. The first option should work for you to just force the copy to use a different URL.

    Oftentimes, for a quick copy I'll just setup another WordPress install "clean" and then copy over plugins and themes from the original to the copy and use WordPress's Export on the original and Import on the new one to quickly shoot over the contents.

  3. danika
    Member
    Posted 4 years ago #

    Thanks. I wound up changing the site url in the database copy using phpmyadmin. Worked fine.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.