WordPress.org

Ready to get started?Download WordPress

Forums

Duplicate Test Site Login Issue (3 posts)

  1. storagesquad
    Member
    Posted 1 year ago #

    Recently copied my existing files and database and added to another domain for theme testing. When I try to access my http://www.testsite/wp-admin it automatically redirects me to http://www.primarysite/wp-admin. I have already done the following steps:

    -Created duplicate database
    -Directed new site to new database
    -Configured wp-config for site url and home

    Basically everything on this documentation I have done:
    http://www.inmotionhosting.com/support/website/wordpress/duplicate-wordpress-site-for-testing

    Have also checked with the server and they cannot find anything on their end. Any ideas as to what this could be? Maybe something in the copied database that is still calling on http://www.primarydomain?

  2. ClaytonJames
    Member
    Posted 1 year ago #

    Did you do a search and replace on the imported/copied database to change all instances of primarysite.com - to - testsite.com ?

  3. 2ninerniner2
    Member
    Posted 1 year ago #

    Further to the post from ClaytonJames, there are 2 fields in the wp_options table that need to be changed to the new URL.

    - option_id # 3 = siteurl
    - option_id # 39 = home

Topic Closed

This topic has been closed to new replies.

About this Topic