• Resolved danika

    (@danika)


    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Thread Starter danika

    (@danika)

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Duplicate copy for testing’ is closed to new replies.