Duplicate Test Site Login Issue (3 posts)

  1. storagesquad
    Posted 3 years 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:

    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. Clayton James
    Posted 3 years 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
    Posted 3 years 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